code: public function init()
      {
          parent::init();
  
          static::checkRequirements();
  
          if (!isset($this->imageOptions['id'])) {
              $this->imageOptions['id'] = $this->options['id'] . '-image';
          }
      }
docs: Initializes the widget.