Add missing functionality to differentiate between PNG and TIFF image data