     override func drawRect(rect: NSRect)
     {
         colorclear.setFill()
-
-        let bpath:NSBezierPath = NSBezierPath(roundedRect: rect, xRadius:lineWidth, yRadius:lineWidth)
+        let borderRadius = CGFloat(lineWidth + 4)
+        let bpath:NSBezierPath = NSBezierPath(roundedRect: rect, xRadius:borderRadius, yRadius:borderRadius)
 
         borderColor.set()
         bpath.lineWidth = lineWidth

        }
    }

    return NSRect(x: frameHash["x"]! - 1,
                  y: frameHash["y"]! - 1,
                  width: frameHash["w"]! + 2,
                  height: frameHash["h"]! + 2)
}

func parseColor(args: Array<String>) -> NSColor


}

func parseFrame(args: Array<String>, strokeWidth: Int) -> NSRect
{
    var frameHash = [String: Int]()
    frameHash["w"] = 0
