added a method for reading an image