Binarize scanned images