I have this code to display the product image in the description area of a product
<?php
$_product = $this->getProduct();
$_helper = $this->helper('catalog/output');
?>
<?php if ($_product->getImage() != 'no_selection' && $_product->getImage()): ?>
<p class="in-content-image">
<?php
$_img = '<img class="in-prod-content" itemprop="image" id="image" id="image" src="'.$this->helper('catalog/image')->init($_product, 'image').'" alt="'.$this->htmlEscape($this->getImageLabel()).'" title="'.$this->htmlEscape($this->getImageLabel()).'" />';
echo $_helper->productAttribute($_product, $_img, 'image');
?>
What i want to do is to create an if statement that show the second image of the product as the first option, and if there is no second image in that product it should show the first default image, anyone might know how i can do that?