code: private Media getImageMedia(Element element) {
      String ref = element.getAttributeValue("src");
      if (StringUtils.isNotEmpty(ref)) {
        ref = unexternalizeImageRef(ref);
      }
      return mediaHandler.get(ref).build();
    }
docs: Extracts media metadata from the DOM element attributes and resolves them to a {@link Media} object.
  @param element DOM element
  @return Media metadata