/** * {@inheritdoc} */ public function renderImage($src, array $options = array()) { $options = $this->createResolver()->resolve($options); $tag = new Tag('img'); $tag->setEmptyTagSuffix($this->getEmptyTagSuffix())->setType(Tag::TYPE_INLINE)->setAttribute('src', $src)->setAttributes($options['attr']); return $tag->render(); }