check for image type before output