Some messing around with libjpeg.
Working on using libjpegturbo instead of libjpeg.