fix the html5 image upload bug “imagecreatefromjpeg(): gd-jpeg,
libjpeg: recoverable error: Premature end of JPEG file”