Get manufacturer logo from product id FME Manufacturer magento extensions

<?php
$collection = Mage::getModel(‘manufacturers/manufacturers’)->checkManufacturer($_product ->getId());
foreach ( $collection as $_manufacturer ) :

$x = Mage::helper(‘manufacturers’)->getProductPageLogoWidth();
$y = Mage::helper(‘manufacturers’)->getProductPageLogoHeight();
$color = Mage::helper(‘manufacturers’)->getProductPageLogoBackgroundColor();

if($_manufacturer[“m_logo”] != “”) {
$imgPath = Mage::helper(‘manufacturers’)->getResizedUrl($_manufacturer[“m_logo”],$x,$y,$color);
$_SESSION[“manufactureridentifier”] = $_manufacturer[‘identifier’];
} else {
$imageFile = “manufacturers/files/n/i/no_image_available.jpg”;
$imgPath = Mage::helper(‘manufacturers’)->getResizedUrl($imageFile,$x,$y,$color);
$_SESSION[“manufactureridentifier”] = $_manufacturer[‘identifier’];
}

?>
<a class=”image” href=”<?php echo Mage::helper(‘manufacturers’)->getUrl($_manufacturer[‘identifier’]); ?>” title=”<?php echo $_manufacturer[“m_name”]; ?>”>
<img style=”margin-top:-10px;” src=”<?php echo $imgPath; ?>” alt=”<?php echo $_manufacturer[“m_name”] ?>” >
</a>
<?php if($brandsLinks!=””){ ?>
<br />
<a href=”<?php echo Mage::helper(‘manufacturers’)->getUrl($_manufacturer[‘identifier’]); ?>” title=”<?php echo $_manufacturer[“m_name”]; ?>”><?php echo $this->__($brandsLinks); ?> <?php echo $_manufacturer[“m_name”]; ?></a>
<?php } ?>
<?php endforeach; ?>