Restoration of Multilayered Single-Photon 3D Lidar Images