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));
    }