Finished dynamic query of feature images

Also fixed the directory scan function to actually use callbacks correctly.
Now a single function does a fully recursive enumeration of all non-dir files.