saves costmap layer based on distance from path