RGB Squares based on jpeg tutorial.
Added libjpeg.