I thought about a possible issue where a low-end mobile device would have gotten the img tag in the head tag. Not good.
While I was editing the code I also improved the code segmentation part that in some cases might have sent incomplete data.
I have written an update, should be much better.
If you were testing the previous version of the script, please upgrade now!