Add gpx writing