in reply to Images
try first a simpl HTML file with <IMG SRC=$filename width='300' height='300'>
If this also isn't working than it's not your perl script but the path to your imagefile which is not correct.
the relativepath to your image file is not the relative path to your CGI file!.