refuse files that are not of image type