The <img> tag seems fine. I'm not much of a Perl programmer, just adminning the application so with the information I've provided on how the script works, what techniques would I need to use so that the image is generated before the HTML is displayed?