Convert an image into a canvas after loading