Thank you Hof! I removed it but then there was a big white space, so I looked at the code a bit and set the numbers in this bit to zero:
PHP Code:
// Lets create the new target image, with a size big enough for the text for the adoptable
$newheight = $height + 0;
$newwidth = ($newwidth < 0)?0:$width;
$img_temp = imagecreatetruecolor($newwidth, $newheight);
$alphablending = true;
which removed the white space, but the eggs aren't shaking like they're supposed to. I can live without that though, but if there's an easy way to fix that I'd like to know! :P Thank you again!