3D Image Formation by Lenses and Mirrors