Made change to output to XYZ using color to base depth instead of intensity