Fixed image search
Do the tree flattening after the tags are filtered, to avoid repeated work