
      }

      // Demonstration of loading in a DICOM file with an image encoded as JPEG2000
      async function loadFile(fileHandle) {

        // First we extract pixel data for the first frame in the DICOM file using the dicomParser JS library
        let arrayBuffer = await fileHandle.arrayBuffer()
        let byteArray = new Uint8Array(arrayBuffer)
        let dataSet = dicomParser.parseDicom(byteArray)
        console.log(dataSet)

        let pixelDataElement = dataSet.elements.x7fe00010
        le