Validate photo params when uploading (fixes #7)