     
     func setup() {
         backgroundColor = UIColor.clearColor()
-        
-        guard let data = data else {
-            image = nil
-            return
-        }
-        
-        if let avatar = data.avatar {
-            image = avatar
-            if configuration.shape == .Circle { layer.cornerRadius = bounds.size.width/2 }
-        }
-        else {
-            image = drawImageWith(data: data)
-        }
-        setNeedsDisplay()
+        image = nil
     }
     
     func textAttributes(fromData data: AvatarImageViewDataSource) -> [String : AnyObject] {

    case Square
}

public class AvatarImageView: UIImageView {
    
    public var data: AvatarImageViewDataSource? {
        didSet {
            setup()
        }
    }
    public var configuration: AvatarImageViewConfiguration
        = DefaultConfiguration()
    

        
        return image
    }
    
    // MARK:- Public Methods
    
    public func refresh() {
        guard let dataSource = dataSource else {
            image = nil
            return
        }
        
        if let avatar = dataSource.avatar {
            image = avatar
            if configuration.shape == .Circle { layer.cornerRadius = bounds.size.width/2 }
        }
        else {
            image = drawImageWith(data: dataSource)
        }
        setNeedsDisplay()
    }


    // MARK:- Utilities
    
