use jpeg-compressor instead of libjpeg to read jpeg images

also:
1. api update
2. wrap CImg library to do image processing