passing quality param to cvSaveImage