Writed function that saves map to png file