A Geometric Perspective on Diffusion Models