         
         return UIColor(red: red, green: green, blue: blue, alpha: 1.0).CGColor
     }
-
 }
        else {
            image = drawImageWith(data: data)
        }
    }
    
    func textAttributes(fromData data: AvatarImageViewDataSource) -> [String : AnyObject] {

        
        return image
    }

    // MARK:- Utilities
    
    private func randomColor() -> CGColor {
        srand48(Int(arc4random()))
        
