Add support for other image formats.

Relying on canvas for conversion of other image formats into jpeg
dataurl.
Merge pull request #60 from ineedfat/master

Add support for other image formats by the use of canvas.