It looks like the script already returns a bitmap image, so assuming that bitmap data is correct, it should work as is. (I'm not sure if most browsers actually support bitmap images, though).
If that doesn't answer your question, feel free to clarify your question :-)