Add libjpeg support