save figures to a programmatically generated directory name