Added image validation to uploading

This is a fallback for the next development stage of image uploading in
case the ajax post goes poorly and I need a "restore" point.
Valid image submission currently just takes you to a "Success!" page--to
be replaced by ajax call.
Current image preview implementation to be replaced.