Fixing a couple of buggs regarding uploading of gif and png, also validate photo mime type before anything else is validated in PhotoFileModel.