allow exporting the canvas as a png (as requested by @vinzv)