Working over libjpeg wrapper.