MDLQA-8041, it was observed that jpg file is not being handled by qa.moodle.net.
Steps to reproduce:
1. As administrator, visit Administration>Site administration>Badges>Add a new badge.
2. Upload any .jpg file (use wikimedia if needed)
3. Click "Create badge" after filling required fields in form.
4. You will see broken badge image.