display image data to canvas