Redo tracker to use directories instead of the gallery file.