Working on reading image data on canvas