Get first image of folder in TAL

If 'item' is a folder, is there a way to get first image in that folder with TAL?

Update:
I (finally) got something working, not sure how 'well' it is:

 images  python:obj.restrictedTraverse('@@contentlisting')(portal_type='Image');

  tal:repeat="item python:images[:1]">

  <img tal:condition="not: item_has_image"
          tal:attributes="src string:${item/getURL}/@@images/image/preview"
          alt=""/>