add python script that converts from grayscale to black/white according to the given threshold