Add quality parameter to save function

Parameter quality was missing. I added it.