Return the type of the image, that is the value of imgtype with which it was created (for example 'photo' or 'bitmap').
tkinter/Image.type
Image.type