Add method to interrogate image driver about image type (extension)

I wanted to convert an image to the file type of another image, so I felt it best to ask the other image what its type was.