in reply to Using CGI to display images

the current directory (or "current working directory") of the webserver is very likely different from your current directory (probably your home directory). Use absolute paths for the image and you should see it