Threshold and change the contrast and brightness of a couple of images