Add support for other image formats.

Relying on canvas for conversion of other image formats into jpeg
dataurl.