finding the center of the light