Added preliminary support for rounded line joins, fixed miter calculations