added jpeg image quality setting