Add quality option to 3d reconstruction.