Added whiteness, blackness and contrast functions