Support for 'quality' parameter to set image quality.
Merge branch 'stage'