 
     private func circleCenter(anchor: CGFloat, between: (startX: CGFloat, endX: CGFloat)) -> CGPoint {
         let pointX = anchor * frame.width
-        let x = max(between.startX, min(pointX, between.endX))
+        let x = max(between.startX + anchorRadius, min(pointX, between.endX - anchorRadius))
         let y = frame.height / 2
         return CGPoint(x: x, y: y)
     }

            return nil
        }

        drawLine(inContext: context, between: (startX, endX), color: color)
        drawCircles(inContext: context, between: (startX, endX), color: color)

        return UIGraphicsGetImageFromCurrentImageContext()?


    // MARK: Private

    private func drawImage(color: UIColor) -> UIImage? {
        let startX = frame.minX + abs(frame.minX)
        let endX = frame.maxX - abs(frame.minX)
        let size = CGSize(width: endX - startX, height: frame.height)

        UIGraphicsBeginImageContextWithOptions(size, false, 0)

        defer {
            UIGraphicsEndImageContext()
