code: protected function getImage($name, $text = "", $class = null, $iconpath = true, $flagpath = false)
      {
          $src = "";
  
          if ($iconpath) {
              $src = $this->iconpath;
          }
  
          if ($flagpath) {
              $src = $this->flagpath;
          }
  
          return "<img src='" . $src . $name . "' title='" . $text . "' alt='' align='top' />";
      }
docs: Returns the code to display a custom HTML img tag.
  
  @param  string $name
  @param  string $text
  @param  string $class
  @param  boolean $iconpath
  @param  boolean $flagpath
  @return string