Checks if the input value is a supported image format.
the value to check
true if the value is 'JPEG' or 'PNG', false otherwise
Checks if the input value is a supported image format.