src/Html.php
public function image($src, $attr = array())
    {
        $src = $this->Assets->getImage($src);
        $attr['src'] = $src;
        return $this->tag('img', $attr);
    }
public function image($src, $attr = array())
    {
        $src = $this->Assets->getImage($src);
        $attr['src'] = $src;
        return $this->tag('img', $attr);
    }
public function image ( $ src , $ attr = array ( ) ) { $ src = $ this -> Assets -> getImage ( $ src ) ; $ attr [ 'src' ] = $ src ; return $ this -> tag ( 'img' , $ attr ) ; }
create an image

@param   mixed   image path data - will be passed to the assets interface for processing
@param   array   attributes to be placed on the img tag
@return  string
create an image