change the image to canvas