<?php
header
("Content-type: image/jpeg"); 
$im = imagecreatetruecolor(200, 370);
$G140 = imagecreatefromjpeg ('wG140.jpg');
$Gn140 = imagecreatefromjpeg ('wGn140.jpg');
$B140 = imagecreatefromjpeg ('wB140.jpg');
$Bn140 = imagecreatefromjpeg ('wBn140.jpg');
$G140new = imagecreatefromjpeg ('wG140-new.jpg');
$Gn140new = imagecreatefromjpeg ('wGn140-new.jpg');
//EARS
imagecopy($im, $Bn140, 60, 50, 0, 0, 15, 25);
imagecopy($im, $B140, 75, 50, 35, 0, 50, 25);
imagecopy($im, $Bn140, 110, 50, 0, 0, 15, 25);
imagecopy($im, $B140, 125, 50, 35, 0, 50, 25);
//FACE
imagecopy($im, $Bn140, 50, 75, 0, 0, 50, 50);
imagecopy($im, $B140, 100, 75, 0, 0, 50, 50);
imagecopy($im, $G140, 50, 125, 0, 0, 50, 50);
imagecopy($im, $Gn140, 100, 125, 0, 0, 50, 50);
//BODY
imagecopy($im, $Bn140, 50, 175, 0, 0, 50, 50);
imagecopy($im, $B140, 100, 175, 0, 0, 50, 50);
imagecopy($im, $G140new, 50, 225, 0, 0, 47, 100);
imagecopy($im, $Gn140new, 103, 223, 3, 0, 50, 100);
//FEET
imagecopy($im, $Bn140, 65, 323, 0, 0, 15, 25);
imagecopy($im, $B140, 80, 323, 35, 0, 50, 25);
imagecopy($im, $Bn140, 105, 323, 0, 0, 15, 25);
imagecopy($im, $B140, 120, 323, 35, 0, 50, 25);
//DRAW LEFT EYE
$rust = imagecolorallocate($im,156,73,0);
imagefilledellipse($im, 78, 112, 30, 20, $rust);
$black = imagecolorallocate($im, 0, 0, 0);
imageellipse($im, 78, 112, 30, 20, $black);
$green = imagecolorallocate($im, 0, 255, 0);
imagefilledellipse($im, 78, 115, 30, 10, $green);
$black = imagecolorallocate($im, 0, 0, 0);
imageellipse($im, 78, 115, 30, 10, $black);
imagefilledellipse($im, 78, 115, 10, 10, $black);
//DRAW RIGHT EYE
$rust = imagecolorallocate($im,156,73,0);
imagefilledellipse($im, 122, 112, 30, 20, $rust);
$black = imagecolorallocate($im, 0, 0, 0);
imageellipse($im, 122, 112, 30, 20, $black);
$green = imagecolorallocate($im, 0, 255, 0);
imagefilledellipse($im, 122, 115, 30, 10, $green);
$black = imagecolorallocate($im, 0, 0, 0);
imageellipse($im, 122, 115, 30, 10, $black);
imagefilledellipse($im, 122, 115, 10, 10, $black);
//SET LINE THICKNESS
imagesetthickness($im, 4);
//DRAW MOUTH
imagearc($im, 89, 135, 20, 30, 0, 180, $black);
imagearc($im, 109, 135, 20, 30, 0, 180, $black);
//DRAW LINES FOR NOSE
imageline($im, 88, 125, 110, 125, $black);
imageline($im, 90, 128, 108, 128, $black);
imageline($im, 92, 131, 106, 131, $black);
imageline($im, 94, 134, 104, 134, $black);
imageline($im, 96, 137, 102, 137, $black);
Imagejpeg ($im);
imagedestroy($im);
imagedestroy($B140);
imagedestroy($Bn140); 
imagedestroy($G140); 
imagedestroy($Gn140); 
imagedestroy($G140new); 
imagedestroy($Gn140new); 
?>