In a region of space which has no massive object light rays travel parallel to each other or ,simply, in a straight line. However, in a positively curved region of space (like near a planet or a star), like in this image light rays "bend" if that body is in there path.
Supposedly, rays of light are traveling from some body but there's a star between there path and they get curved so that the light reaches us, the observers. Am I correct if I say that the reason light rays bend is because that path in the curved region takes the least time for the light rays?
The way I see it, if I trace the path of light in absence of the star and then superimpose that path when the star is present, the new path gets curved but the distance is least in this case which is why light will take that path.