in reply to images & background images with CGI
Your web server's error logs might give you a hint.
Try putting the image in the root of your web hierarchy, then write the BODY tag as <body background="/image.jpg">