crop(rect) {
    const data = this._graphics.getCroppedImageData(rect);
    if (!data) {
      return Promise.reject(rejectMessages.invalidParameters);
    }

    return this.loadImageFromURL(data.url, data.imageName);
  }
Crop this image with rect
@param {Object} rect crop rect
 @param {Number} rect.left left position
 @param {Number} rect.top top position
 @param {Number} rect.width width
 @param {Number} rect.height height
@returns {Promise}
@example
imageEditor.crop(imageEditor.getCropzoneRect());