add --image-quality flag support