Conditional support for image format extensions (hardcoded for too old ones)