updates to binarization pipeline script