Throw any errors to go to the 500 page
Remove notes.txt
Check if file type is "image" rather than checking extensions (since they could throw something weird at us)