Port of https://github.com/matthewrkula/AnimatedPathView with extras