title: Why is modx getResources and phpthumbof showing the same thumb nail for different resources?
body: <p>I have a getResources call that shows 6 items on my homepage:</p>
  
  <pre><code>[[!getResources?
    &amp;tpl=`homepageInventoryCellTpl`
    &amp;parents=`4`
    &amp;resources=`-33`
    &amp;depth=`10`
    &amp;limit=`6`
    &amp;includeContent=`1`
    &amp;includeTVs=`1`
    &amp;processTVs=`0`
    &amp;hideContainers=`1`
    &amp;showHidden=`1`
    &amp;debug=`0`
    &amp;sortbyTV=`vehicleonhomepage`
    &amp;sortDirTV=`DESC`
    ]]
  </code></pre>
  
  <p>it does work showing 6 thumbs [for vehicles] but it shows the same thumb for each vehicle! </p>
  
  <p>The output tag looks like:</p>
  
  <pre><code>&lt;img class="img-responsive" 
  src="
  [[!phpthumbof? 
  &amp;input=`[[!++gallery.files_url]][[!getgalleryAlbumCover? 
  &amp;id=`[[!+tv.vehiclegallery]]`]]` 
  &amp;options=`&amp;w=300`
  ]]" 
  /&gt;
  </code></pre>
  
  <p>Note that nothing is cached [!]</p>
  
  <ul>
  <li>getResources does work correctly and returns six different images if I remove the phpthumbof bit</li>
  <li>I've cleared all the different caches several times</li>
  <li>[[!++gallery.files_url]] just returns the gallery path [/assets/gallery/]</li>
  <li>[[!getgalleryAlbumCover? &amp;id=`[[!+tv.vehiclegallery]] returns the actual name of the album cover </li>
  <li>the /assets/components/gallery/cache/ directory is writable. </li>
  </ul>
  
  <p>Why is it showing the same thumb for all 6 vehicles? </p>