         }
 
         public func process(image: UIImage, context: ImageProcessingContext?) -> UIImage? {
-            return image.processed.byAddingRoundedCorners(radius: radius.converted(to: unit), color: border?.color)
+            return image.processed.byAddingRoundedCorners(radius: radius.converted(to: unit), border: border)
         }
 
         public var identifier: String {


    /// Adds rounded corners with the given radius to the image.
    /// - parameter radius: Radius in pixels.
    /// - parameter color: Pass a color to stroke a border.
    func byAddingRoundedCorners(radius: CGFloat, color: UIColor? = nil) -> UIImage? {
        guard let cgImage = image.cgImage else {
            return nil
        }

// MARK: - ImageProcessor.RoundedCorners

extension ImageProcessor {
    public struct Border: Hashable {
        let color: UIColor
        let width: CGFloat

        public init(color: UIColor, width: CGFloat = 1) {
            self.color = color
            self.width = width
        }

        public var description: String {
            return "Border(color: \(color), width: \(width))"
        }
    }

    /// Rounds the corners of an image to the specified radius.
    ///
    /// - warning: In order for the corners to be displayed correctly, the image must exactly match the size
    /// of the image view in which it will be displayed. See `ImageProcessor.Resize` for more info.
    public struct RoundedCorners: ImageProcessing, Hashable, CustomStringConvertible {
        private let radius: CGFloat
        private let unit: Unit
        private let border: Border?
