Exporting of image data from the canvas