3D reconstruction using 2D images