wrap the jpeglib, this can write pixel data into jpeg files