This could prevent memory exhaustion attacks. See http://php.net/manual/en/function.imagecreatetruecolor.php