Add ability to set image quality
Add validation for image quality option.