Fixing jpg uploads