how to get the right closing tag for CHtml::image?
Please check again. CHtml::image() does create a correct tag (see source of CHtml::image() and CHtml::tag()).