Hotfix to fix jpeg uploads