Several minor fixes for depth camera code.