Ray Tracing for Thin Lenses