protected function getArticleImageLink(&$oArticle, $iWidth = null)
    {
        $sLink = '';
        $oArticleImage = $oArticle->GetPrimaryImage();
        if (null !== $oArticleImage) {
            $oImage = $oArticleImage->GetImage(0, 'cms_media_id');
            if (null !== $oImage) {
                if (is_int($iWidth) && $iWidth > 0) {
                    $oThumbnail = $oImage->GetThumbnail($iWidth, 1000);
                    $sLink = $oThumbnail->GetFullURL();
                } else {
                    $sLink = $oImage->GetFullURL();
                }
            }
        }

        return $sLink;
    }