change white detection to hsv