validates photo filetype, with translated error messages