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

...other functions