ageData, 0, 0);
        };

        const renderDepthFrame = (ctx, canvasImageData, newPixelData) => {
          const pixelArray = canvasImageData.data;
          let depthPixelIndex = 0;
          for (let i = 0; i < canvasImageData.data.length; i+=4) {
            pixelArray[i+0] = newPixelData[depthPixelIndex];
            pixelArray[i+1] = newPixelData[depthPixelIndex];
            pixelArray[i+2] = newPixelData[depthPixelIndex];
            pixelArray[i+3] = 0xff;
            depthPixelIndex++;
      