new image recognition with libjpeg