Scan the uploaded files and throw an error if they are not images:
