Catch exception if the provided media is not an Image