source/Core/PictureHandler.php
public function getProductPicUrl($sPath, $sFile, $sSize, $sIndex = null, $bSsl = null)
    {
        $sUrl = null;
        if (!$sFile || !($sUrl = $this->getPicUrl($sPath, $sFile, $sSize, $sIndex, false, $bSsl))) {
            $sUrl = $this->getPicUrl($sPath, "nopic.jpg", $sSize, $sIndex, "/", $bSsl);
        }

        return $sUrl;
    }
public function getProductPicUrl($sPath, $sFile, $sSize, $sIndex = null, $bSsl = null)
    {
        $sUrl = null;
        if (!$sFile || !($sUrl = $this->getPicUrl($sPath, $sFile, $sSize, $sIndex, false, $bSsl))) {
            $sUrl = $this->getPicUrl($sPath, "nopic.jpg", $sSize, $sIndex, "/", $bSsl);
        }

        return $sUrl;
    }
public function getProductPicUrl ( $ sPath , $ sFile , $ sSize , $ sIndex = null , $ bSsl = null ) { $ sUrl = null ; if ( ! $ sFile || ! ( $ sUrl = $ this -> getPicUrl ( $ sPath , $ sFile , $ sSize , $ sIndex , false , $ bSsl ) ) ) { $ sUrl = $ this -> getPicUrl ( $ sPath , "nopic.jpg" , $ sSize , $ sIndex , "/" , $ bSsl ) ; } return $ sUrl ; }
Returns requested product picture url. If image is not available - returns url to nopic.jpg

@param string $sPath  path from pictures/master/
@param string $sFile  picture file name
@param string $sSize  picture sizes (x, y)
@param string $sIndex picture index [optional]
@param bool   $bSsl   Whether to force SSL

@return string | bool
Returns requested product picture url . If image is not available - returns url to nopic . jpg