What about doing a
scandir
on GSTHEMESPATH . $TEMPLATE . '/assets/images/'
, then prepend global $SITEURL
to each result and output. Voila.