Made density_graph use the settings file, work headless, and basic rescale