title: getGalleryImages returning NULL in Magento homepage
body: <p>We've extended a homepage slider for a client so that they can feature products in this space. </p>
  
  <p>As part of this, there are three image slots where we wish to get the products' main image and then two images from the media gallery (ideally randomly but not the end of the world if by ID).</p>
  
  <p>To get a better understanding, please see screenshot of what we have so far:-</p>
  
  <p><img src="https://i.stack.imgur.com/uxzPB.png" alt="featprodslider"></p>
  
  <p>We're building the collection for this module using the following:-</p>
  
  <pre><code>$featured_products = Mage::getModel('catalog/product')
  -&gt;getCollection()
  -&gt;addAttributeToSelect('*')
  -&gt;AddAttributeToFilter('featured', array('eq' =&gt; 1));
  </code></pre>
  
  <p>Getting the product's main image is no problem, this is working perfectly with the following:-</p>
  
  <pre><code>&lt;img class="gallery" src="&lt;?php echo $this-&gt;helper('catalog/image')-&gt;init($product, 'small_image')-&gt;resize(225); ?&gt;" alt="&lt;?php echo $this-&gt;stripTags($this-&gt;getImageLabel($product, 'small_image'), null, true) ?&gt;" /&gt;
  </code></pre>
  
  <p>And it is simple enough to make all three image slots use this main image as shown in the image above.</p>
  
  <p>When we try to call getGalleryImages however, this always returns <code>NULL</code> (example such as):-</p>
  
  <pre><code>&lt;?php if (count($this-&gt;getGalleryImages()) &gt; 0): ?&gt;
  &lt;?php foreach ($this-&gt;getGalleryImages() as $_image): ?&gt;
  &lt;img class="gallery" src="&lt;?php echo $this-&gt;helper('catalog/image')-&gt;init($this-&gt;getProduct(), 'thumbnail', $_image-&gt;getFile())-&gt;resize(100); ?&gt;" width="100" height="100" alt="&lt;?php echo $this-&gt;htmlEscape($_image-&gt;getLabel()) ?&gt;" /&gt;
  &lt;?php endforeach; ?&gt;
  &lt;?php endif; ?&gt;
  </code></pre>
  
  <p>Please could someone advise of the best approach to call the gallery images on the homepage. Is there something we can include to the collection build or would we need to add an observer.</p>
  
  <p>Thanks in advance.</p>