protected function createImage($imageUrl)
{
$image = new TImage();
$image->setImageUrl($imageUrl);
if (($width = $this->getImageWidth()) !== '') {
$image->setWidth($width);
}
if (($height = $this->getImageHeight()) !== '') {
$image->setHeight($height);
}
if (($toolTip = $this->getToolTip()) !== '') {
$image->setToolTip($toolTip);
}
if (($text = $this->getText()) !== '') {
$image->setAlternateText($text);
}
if (($align = $this->getImageAlign()) !== '') {
$image->setImageAlign($align);
}
$image->setBorderWidth('0');
return $image;
}