Forgot to import TraitError.
Saner acceptable range for jpeg quality parameter.
Better docstrings.