code: protected boolean performDialogOperation() throws CmsException {
  
          // lock the image gallery folder
          checkLock(getParamResource());
  
          Iterator<CmsResource> i = getImages().iterator();
          // loop over all image resources to change the properties
          while (i.hasNext()) {
              CmsResource res = i.next();
              String imageName = res.getName();
              String propertySuffix = "" + imageName.hashCode();
  
              // update the title property
              CmsProperty titleProperty = getCms().readPropertyObject(res, CmsPropertyDefinition.PROPERTY_TITLE, false);
              String newValue = getJsp().getRequest().getParameter(PREFIX_TITLE + propertySuffix);
              writeProperty(res, CmsPropertyDefinition.PROPERTY_TITLE, newValue, titleProperty);
  
              // update the description property
              CmsProperty descProperty = getCms().readPropertyObject(
                  res,
                  CmsPropertyDefinition.PROPERTY_DESCRIPTION,
                  false);
              newValue = getJsp().getRequest().getParameter(PREFIX_DESCRIPTION + propertySuffix);
              writeProperty(res, CmsPropertyDefinition.PROPERTY_DESCRIPTION, newValue, descProperty);
          }
  
          return true;
      }
docs: Performs the comment images operation.<p>
  
  @return true, if the resources were successfully processed, otherwise false
  @throws CmsException if commenting is not successful