To test for an error with the file upload, but for some reason it wasn't throwing an error when the image wasn't uploaded due to the MAX_FILE_SIZE directive being set in the html document. Got it fixed now.
There are multiple types of jpeg files. Some are not encoded to the exact standard, they are considered errant by php. This is fixed in later versions of php if I remember the logs correctly however I can't find the bug right now detailing it.