Mike,
I tried to use the code from your first message, but I still get the internal server error. Do you know why?
<?php
Header( "Content-type: image/png");
// create image
$image = imagecreate(200,200);
// create color R=100, G=0, R=0
$maroon = ImageColorAllocate($image,100,0,0);
// create color R=255, G=255, R=255
$white = ImageColorAllocate($image,255,255,255);
// create white background
ImageFilledRectangle($image,0,0,200,200,$white);
// create frame
ImageRectangle($image,10,10,190,190,$maroon);
// create inner rectangle
ImageFilledRectangle($image,50,50,150,150,$maroon);
// render image
ImagePNG($image);
// cleanup memory
ImageDestroy($image);
?>