changed the Image class