update image's quality.