Lens equations and image formation