If you want to incorporate your script into an image tag, then you must take care that your script returns an image or else the web-page wil not render correctly.
CountZero
"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law
Comment on Re: Need a way to print script output to web page?