Spatial measurement with consumer grade digital cameras