Two new fancy scripts. One for thresholding, second one for resizing with interpolation turned off