original_string: public static function image($relative, array $attributes = [])
      {
          $attributes += ['alt' => null];
  
          $height = isset($attributes['height']) ? $attributes['height'] : 0;
  
          $width = isset($attributes['width']) ? $attributes['width'] : 0;
  
          $url = static::url($relative, $width, $height);
          
          $attributes['src'] = $url;
  
          $attrs = [];
  
          foreach ($attributes as $name => $attr) {
  
              $attrs[] = "$name=\"{$attr}\"";
          }
  
          $attrs = implode(' ', $attrs);
  
          return "<img {$attrs} />";
  
      }
code: public static function image($relative, array $attributes = [])
      {
          $attributes += ['alt' => null];
  
          $height = isset($attributes['height']) ? $attributes['height'] : 0;
  
          $width = isset($attributes['width']) ? $attributes['width'] : 0;
  
          $url = static::url($relative, $width, $height);
          
          $attributes['src'] = $url;
  
          $attrs = [];
  
          foreach ($attributes as $name => $attr) {
  
              $attrs[] = "$name=\"{$attr}\"";
          }
  
          $attrs = implode(' ', $attrs);
  
          return "<img {$attrs} />";
  
      }
code_tokens: public static function image ( $ relative , array $ attributes = [ ] ) { $ attributes += [ 'alt' => null ] ; $ height = isset ( $ attributes [ 'height' ] ) ? $ attributes [ 'height' ] : 0 ; $ width = isset ( $ attributes [ 'width' ] ) ? $ attributes [ 'width' ] : 0 ; $ url = static :: url ( $ relative , $ width , $ height ) ; $ attributes [ 'src' ] = $ url ; $ attrs = [ ] ; foreach ( $ attributes as $ name => $ attr ) { $ attrs [ ] = "$name=\"{$attr}\"" ; } $ attrs = implode ( ' ' , $ attrs ) ; return "<img {$attrs} />" ; }
docstring: Returns the image tag with thumb, based on attributes "height" and "width"
  @param string $relative
  @param array $attributes
  @return string
docstring_tokens: Returns the image tag with thumb based on attributes height and width