getImageData(context, image, rect) {
    context.drawImage(image, rect.x, rect.y);
    const imagedata = context.getImageData(rect.x, rect.y, rect.width, rect.height);
    context.clearRect(rect.x, rect.y, rect.width, rect.height);

    return imagedata;
  }
This will get the image data. It could be necessary to create a Proton.Zone.

@memberof Proton#Proton.Util
@method getImageData

@param {HTMLCanvasElement}   context any canvas, must be a 2dContext 'canvas.getContext('2d')'
@param {Object}              image   could be any dom image, e.g. document.getElementById('thisIsAnImgTag');
@param {Proton.Rectangle}    rect