static public function getThumbFilename($filename, $mimeType, $size)
    {
        if (substr($mimeType, 0, 5) == 'image')
        {
            $pos = mb_strrpos($filename, '.');
            if ($pos === FALSE)
            {
                return $filename . '_' . $size['width'] . 'x' . $size['height'];
            }
            else
            {
                return mb_substr($filename, 0, $pos) . '_' . $size['width'] . 'x' . $size['height'] . mb_substr($filename, $pos);
            }
        }
        else if ($mimeType == 'application/pdf')
        {
            return $GLOBALS['kernel']->getContainer()->get('templating.helper.assets')->getUrl('bundles/fulguriolightcms/img/thumb_pdf.png');
        }
        else
        {
            return 'http://www.placehold.it/' . $size['width'] . 'x' . $size['height'] . '/EFEFEF/AAAAAA';
        }
    }