public function tag($attr = array())
{
// don't return the tag if the url is not available
if (!$this->result->url()) {
return false;
}
return html::img($this->result->url(), array_merge(array('alt' => isset($this->options['alt']) ? $this->options['alt'] : ' ', 'class' => isset($this->options['class']) ? $this->options['class'] : null), $attr));
}