Fixed 2D Map generation

Also made images cache when generated, and added an option to save the
previewed images