Pass encoding quality when saving jpg images

It will be better if we can customize jpeg encoding quality while saving.