Text this: Human perception faithful curve reconstruction based on persistent homology and principal curve