Update ImageList.php

Added a function to find folders. Excludes folders '.', '..', 'tmp' and any hidden folders.
Modified run method to find all t=folders for the drop-down list, and only those files that are requested by the url