Read jpeg by libjpeg.