getting path from an svg