add function of image compression quality.