tometricInterpretation === "MONOCHROME1"
          let smallestPixelValue
          let largestPixelValue
          let pixelRepresentation = dataSet.uint16('x00280103');

          if (pixelRepresentation === 0) {
            smallestPixelValue = dataSet.uint16('x00280106')
            largestPixelValue = dataSet.uint16('x00280107')
          } else {
            smallestPixelValue = dataSet.int16('x00280106')
            largestPixelValue = dataSet.int16('x00280107')
          }

          if (smallestPix