Added the function isImageFormatSupported to context