Repair Corrupt JPEG File Header