Sounds like your /includes/functions/html_output.php file might be damaged or maybe it's using content from another version of Zen Cart or from an addon not built for the ZC version you're using.
Or maybe you've got an image addon that's intercepting the normal image treatment, and thus giving unexpected results.
Or maybe the image itself is damaged somehow?