introduce format and quality options