code: function(attributes) {
  
        var self = this;
  
        this.imageOptions.attributes = attributes;
  
        if (attributes && attributes.src) {
          document.write('<img id="' + this.imageOptions.temp_id + '" src="'  + attributes.src + '" />');
        } else {
          document.write('<img id="' + this.imageOptions.temp_id + '" />');
        }
  
        this.queue.add(function() {
  
          var element = document.getElementById(self.imageOptions.temp_id);
  
          element.src = self._getUrl();
          element.removeAttribute("temp_id");
  
          var attributes = self.imageOptions.attributes;
  
          if (attributes && attributes.class) { element.setAttribute("class", attributes.class); }
          if (attributes && attributes.id)    { element.setAttribute("id", attributes.id); }
  
        });
  
        return this;
      }
docs: /* Image.write(attributes)
  adds a img tag in the same place script is executed