Throw exception when try to use a format that doesn't registered

Currently, if a developer try to access to an image with a format that doesn't exists, there is no feedback and the image will never display.

I purpose to throw an exception if developer try to use an image format that doesn't exist.