Gravitational Lensing from a Geometric Viewpoint