save_heatmap function

Save a heatmap object to a file