Add optional 'quality' lossy compression param