Removing ghosting artifacts in depth reconstruction