GRAPHICS: Implement JPEGDecoder based on libjpeg.