Canvas2Image

covert canvas to image and save the image file