t pixelData = null

        if (pixelDataElement.encapsulatedPixelData) {
          pixelData = getEncapsulatedImageFrame(dataSet, 0)
        }

        //console.log(pixelData)
        if (pixelData) {
          console.log("Creating WASM InputData")

          // Create an input data object to hold the compressed pixel data
          let inputData = new Module.InputData(pixelData.length)
          let jpegOutputData = null

          try {
            // Copy the pixel data into the inputData object and t