Allow setting the output file quality

When cropping an image just before sending to a web service, it is very handy to be able to save the output file in a compressed format rather than with 100% quality and then save it again.