trying methods of reading in an image file