Hacking the html5 image canvas.