Gallery module: Fix cannot upload file type jpg