code: public Map<String, String> getImageAttributes(Map<String, String> attributes) {
  
          for (Entry<Attribute, I_CmsFormWidget> entry : m_fields.entrySet()) {
              String val = entry.getValue().getFormValueAsString();
              if (CmsStringUtil.isEmptyOrWhitespaceOnly(val)) {
                  continue;
              }
              attributes.put(entry.getKey().name(), val);
              // put the same value in 'alt' and 'title' attribute
              if (entry.getKey() == Attribute.alt) {
                  attributes.put(Attribute.title.name(), val);
              }
          }
          return attributes;
      }
docs: Adds necessary attributes to the map.<p>
  
  @param attributes the attribute map
  @return the attribute map