execute(graphics, type, angle, isSilent) {
    const rotationComp = graphics.getComponent(ROTATION);

    if (!this.isRedo) {
      const undoData = makeUndoData(rotationComp);

      cachedUndoDataForSilent = this.setUndoData(undoData, cachedUndoDataForSilent, isSilent);
    }

    return rotationComp[type](angle);
  }
Rotate an image
@param {Graphics} graphics - Graphics instance
@param {string} type - 'rotate' or 'setAngle'
@param {number} angle - angle value (degree)
@param {boolean} isSilent - is silent execution or not
@returns {Promise}