Any way to get an image out of a texture?

When you use getMaterial and then check the map property on the material, it can come back as a texture, not an image, and the texture can’t be drawn with sprite(…) nor examined pixel by pixel with get(…).

Is there any way to turn this texture-class object into an image?