working on reading image file