fixed getImage
updated retrieving of images