Added JPEG output