Issue #2834497 by mondrake: Introduce an optional 'filter' argument to resize/scale/scale_and_crop (and rotate) operations