function getImageData(image) {
  if (!image) return

  // create image data with image
  return MSImageData.alloc().initWithImage(image)
}
Creates an MSImageData instance from NSImage.

@param {NSImage} image
@returns {MSImageData}