Using geometry in photography