Added basic binarization features