directory bug fixed for savefig in plotDistanceMap