code: public function setImages(array $images, PermissionsInterface $permissions = null)
      {
          $this->clear();
  
          foreach ($images as $prop => $image) {
              $this->set($prop, $image, /* check */ false);
          }
  
          if ($permissions) {
              $this->setPermissions($permissions);
          }
  
          return $this;
      }
docs: Set images and permissions.
  
  Replaces the whole set!
  
  @param array                $images
  @param PermissionsInterface $permissions
  
  @return self