innerHTML return image

Well I can definitely tell you it’s a pathing issue, there’s no other reason for it not to work. If you have firebug you should be able to see it trying to call it from that path that it thinks it should be calling it from.