execute(graphics, type) {
    const flipComp = graphics.getComponent(FLIP);

    this.undoData.setting = flipComp.getCurrentSetting();

    return flipComp[type]();
  }
flip an image
@param {Graphics} graphics - Graphics instance
@param {string} type - 'flipX' or 'flipY' or 'reset'
@returns {Promise}