Remove code forked from libjpeg
and replace it by use of a proper jpegimplementation. The code use the standard jpeg api, so libjpeg or libjpegturbo could be used.
Note that the encoding functions are free functions, they could/should be enclosed in the EncodedAttribute class, but it will change the interface.
Closes #617 (closed)
Edited by Damien Lacoste