Add validation for image quality option.