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' />";
    }