crude binarization algorithm added