Refactor
Improve memory usage by adding autoreleasepool
Add printing of NSLineToBezierPathElement elements