public function renderImg($message, $extension = null, $size = null, $padding = null, $attribs = array())
    {
        if (isset($extension)) {
            if (is_array($extension)) {
                $attribs = $extension;
                $extension = null;
            } elseif (isset($size)) {
                if (is_array($size)) {
                    $attribs = $size;
                    $size = null;
                } elseif (isset($padding) && is_array($padding)) {
                    $attribs = $padding;
                    $padding = null;
                }
            }
        }

        return $this->renderer->render(self::IMG_TEMPLATE, array(
            'src'       => $this->assembleRoute($message, $extension, $size, $padding),
            'attribs'   => $attribs
        ));
    }