implemented the image data to be returned as a map of information