final AttributeSet attributes = textElement.getAttributes();
if (HTML.Tag.IMG.equals(attributes.getAttribute(StyleConstants.NameAttribute)))
{
final Element result = new Element();
result.setName(textElement.getName());
result.setElementType(new ContentType());
final String src = (String) attributes.getAttribute(HTML.Attribute.SRC);
final String alt = (String) attributes.getAttribute(HTML.Attribute.TITLE);
result.setAttribute(AttributeNames.Core.NAMESPACE, AttributeNames.Core.VALUE, convertURL(src));
result.setAttribute(AttributeNames.Html.NAMESPACE, AttributeNames.Html.TITLE, alt);
result.setAttribute(AttributeNames.Html.NAMESPACE, AttributeNames.Swing.TOOLTIP, alt);