added format and quality options