read image&assign each pixel closet cluster