produce error if user attempts to upload a file that is not an image