text: var util = require('util'),
      extendWithGettersAndSetters = require('../util/extendWithGettersAndSetters'),
      HtmlRelation = require('./HtmlRelation');
  
  function HtmlImage(config) {
      HtmlRelation.call(this, config);
  }
  
  util.inherits(HtmlImage, HtmlRelation);
  
  extendWithGettersAndSetters(HtmlImage.prototype, {
      get href() {
          return this.node.getAttribute('src');
      },
  
      set href(href) {
          this.node.setAttribute('src', href);
      },
  
      attach: function (asset, position, adjacentRelation) {
          this.node = asset.parseTree.createElement('img');
          this.attachNodeBeforeOrAfter(position, adjacentRelation);
          return HtmlRelation.prototype.attach.call(this, asset, position, adjacentRelation);
      }
  });
  
  module.exports = HtmlImage;
  