Added JPEG support.

(Working condition is unsure do to errors within my libjpeg)