Refactor and add message in upload images page
Reject files that are not images