JPEG encoding on the C lib now OK