Convert an image to a data-url
0.4.5
an ImageData instance holding the pixel data to be converted
the format to use in the generated data-url