Text this: A simple approach to determine the best threshold value for automatic image thresholding