I known or I can simply find in the code what are supported image types. However I would like to know what kind of file caused the error.