       inset = 0
     }
     let rect = CGRect(x: 0, y: 0, width: size.width, height: size.height)
-    let pathRect = rect.insetBy(dx: inset + padding, dy: inset + padding)
+    let pathRect = rect.insetBy(dx: inset + insets.x, dy: inset + insets.y)
     UIGraphicsBeginImageContextWithOptions(size, false, 0)
     let ctx = UIGraphicsGetCurrentContext()
     UIColor.clear.setFill()

  public static func circleImage(fillColor:UIColor,radius:CGFloat,padding:CGFloat  = 0) -> UIImage{
    let size = CGSize(width: radius * 2, height: radius * 2)
    let cornerRadius = radius
    return roundImage(fillColor:fillColor, size: size, padding: padding, cornerStyle: .radius(cornerRadius))
  }




  public static func roundImage(fillColor:UIColor? = nil,
                                size:CGSize=CGSize(width: 32, height: 32),
                                insets:CGPoint = .zero,
                                cornerStyle:CornerStyle = .radius(4),
                                borderPosition:BorderPosition = .inside,
                                borderWidth:CGFloat = 0,
