code: function getImageDataType (image) {
    if (image.color) {
      return 'rgb';
    }
  
    const pixelData = image.getPixelData();
  
    if (pixelData instanceof Int16Array) {
      return 'int16';
    }
  
    if (pixelData instanceof Uint16Array) {
      return 'uint16';
    }
  
    if (pixelData instanceof Int8Array) {
      return 'int8';
    }
  
    return 'uint8';
  }
docs: Returns the image data type as a string representation.
  @param {any} image The cornerstone image object
  @returns {string} image data type (rgb, iint16, uint16, int8 and uint8)
  @memberof WebGLRendering