replace addCurveToPoint with addArcWithCenter when processing the rounded corner, remove kCPOffset option