added convertToBlackWhite