<?
$im 
ImageCreateTrueColor(300,350);
//COMMENT OUT FOR JPEG
$bck=imagecolortransparent($im$bck);
$blue=imagecolorallocate($im00100);
$pink=imagecolorallocate($im255150130);
for(
$x=0$x<256$x++){
//FACE
imagefilledellipse ($im150865060$pink);
$font='eye.ttf';
imagettftext($im17012596$blue$font'Bb');

//HAT
Imageellipse($im15080-$x/2100-$x/280,$x^ceil(rand()));
//BODY
Imageellipse($im150150100-$x/280,$x^ceil(rand()));
//LEGS
Imagearc($im150220+$x/2$x/22301800,$x^ceil(rand()));
}
Header('Content-Type: image/png');
Imagepng($im);
imagedestroy($im);
?>