returning just the image object instead of a list in the getImageById