Fix for JPEG-decoding bug.