Added draw path function