JPG upload not completing in Craft 2.6.2789
My guess is you had an auto-update or a git deployment go bad and some files didn't get updated properly.

To be safe, I'd download a fresh copy of Craft from https://craftcms.com and replace your existing craft/app folder with the new one to make sure you've got all of the latest files.