This should now work from the command line. Generates the pickled files AND the html main file with links to generated images.