ction convertDecodedDataToRGBA(dstArrayBuffer, jpegOutputData, dataSet) {
        
        let dstArray = new Uint8Array(dstArrayBuffer)
        let photometricInterpretation = dataSet.string("x00280004")
        let samplesPerPixel = dataSet.uint16("x00280002")
        console.log(`photometricInterpretation: ${photometricInterpretation} samplesPerPixel: ${samplesPerPixel}`)

        if (photometricInterpretation === "MONOCHROME1" || photometricInterpretation === "MONOCHROME2") {

          let invert = pho