JPEG image decode failed in decodeToFd

Hi,
The patch is added to fix the issue: