added script to convert to black and white given some split value