Clip to min and max range of input image, add missing clip parameter to ...

...other functions
If you move this *above* `clipped = ` to make `cval_mask`, you can then do the clipping in-place, saving an array copy.