alter canvas to image/png