Refactors the generator do to a two-pass: 1. Get a grasp of all directories which have images, noting their children and images 2. Do stuff with those directories
Currently will generate dirs and all the thumbnails and view sizes of images