in reply to Mixing HTML and GIF
mt2k,
Wouldn't it be possible to use Server Side Includes for this?
In the HTML:
<!--exec cgi="/your/script/here.pl" -->
And the script producing output with an image/gif content type document with the picture in it.
Cheers
Arjen