Might mention that quality is only relevant for jpg in the docstring.