code: public void add(RtfBasicElement element) {
          try {
              if(element instanceof RtfInfoElement) {
                  this.documentHeader.addInfoElement((RtfInfoElement) element);
              } else {
                  if(element instanceof RtfImage) {
                      ((RtfImage) element).setTopLevelElement(true);
                  }
                  element.writeContent( this.data.getOutputStream() );
                  this.lastElementWritten = element;
              }
          } catch(IOException ioe) {
              ioe.printStackTrace();
          }
      }
docs: Adds an element to the rtf document
  
  @param element The element to add