change the color of marker image and cell's background when the distance is bigger than threshold