addEvent(actions) {
    this._els.widthRange.on('change', this._changeWidthRangeHandler.bind(this));
    this._els.heightRange.on('change', this._changeHeightRangeHandler.bind(this));
    this._els.lockAspectRatio.addEventListener('change', this._changeLockAspectRatio.bind(this));

    const apply = this._applyEventHandler.bind(this);
    const cancel = this._cancelEventHandler.bind(this);

    this.eventHandler = {
      apply,
      cancel,
    };

    this.actions = actions;
    this._els.apply.addEventListener('click', apply);
    this._els.cancel.addEventListener('click', cancel);
  }
Add event for resize
@param {Object} actions - actions for resize
  @param {Function} actions.resize - resize action
  @param {Function} actions.preview - preview action
  @param {Function} actions.getCurrentDimensions - Get current dimensions action
  @param {Function} actions.modeChange - change mode
  @param {Function} actions.stopDrawingMode - stop drawing mode
  @param {Function} actions.lockAspectRatio - lock aspect ratio
  @param {Function} actions.reset - reset action