Thin lens equation and image formation