Updated the sensing of white and black for color normalization