code: public function getImgTag($postfix = null, $attributes = array())
      {
          $to_compile = array();
          foreach ($attributes as $key => $value) {
              $to_compile[] = sprintf('%s="%s"', $key, $value);
          }
          return sprintf('<img src="%s" %s />', $this->getUrl(), join(' ', $to_compile));
      }
docs: Get image tag
  
  @param string $postfix File path postfix
  @param array $attributes additional attributes
  @return string