application/modules/g/views/helpers/Image.php
public function render($image, $template = null, $htmlAttribs = array(), $partial = null) {
        if ($this->_isFilename($image)) {
            // When calling for a static image, you can use the second param as $htmlAttribs.
            $htmlAttribs = $template ?: array();
            return $this->_renderStatic($image, $htmlAttribs);
        }
        if (!$template) {
            throw new Exception(self::ERROR_SCALING_TEMPLATE_MISSING);
        }
        return $this->_renderUpload($image, $template, $htmlAttribs, $partial);
    }
public function render($image, $template = null, $htmlAttribs = array(), $partial = null) {
        if ($this->_isFilename($image)) {
            // When calling for a static image, you can use the second param as $htmlAttribs.
            $htmlAttribs = $template ?: array();
            return $this->_renderStatic($image, $htmlAttribs);
        }
        if (!$template) {
            throw new Exception(self::ERROR_SCALING_TEMPLATE_MISSING);
        }
        return $this->_renderUpload($image, $template, $htmlAttribs, $partial);
    }
public function render ( $ image , $ template = null , $ htmlAttribs = array ( ) , $ partial = null ) { if ( $ this -> _isFilename ( $ image ) ) { // When calling for a static image, you can use the second param as $htmlAttribs. $ htmlAttribs = $ template ? : array ( ) ; return $ this -> _renderStatic ( $ image , $ htmlAttribs ) ; } if ( ! $ template ) { throw new Exception ( self :: ERROR_SCALING_TEMPLATE_MISSING ) ; } return $ this -> _renderUpload ( $ image , $ template , $ htmlAttribs , $ partial ) ; }
Render an HTML img tag.

@param   mixed   $image       Database id for uploads, or a filename
in case of a static image asset.
@param   string  $template    The id of the scaling template as defined in application.ini.
For instance: 'cms_preview'
@param   array   $htmlAttribs HTML attributes on the image tag
@param   string  $partial     Custom partial for rendering an upload
@return  string
Render an HTML img tag .