Set canvas size to image size. Fixes #1

According to the W3C, the canvas element defaults to a width of 300, and
height of 150. This causes images which excede these dimensions to
return black pixels for the cropped parts.

http://www.w3.org/TR/2012/WD-html5-author-20120329/the-canvas-element.html#the-canvas-element