Text this: Binarization Based on Maximum and Average Gray Values