     
     public required init(coder aDecoder: NSCoder) {
         super.init(coder: aDecoder)
-        bmx_initialize()
+        commonInit()
     }
     
     override init(frame: CGRect) {
         super.init(frame: frame)
-        bmx_initialize()
+        commonInit()
     }
     
     public override func awakeFromNib() {
         super.awakeFromNib()
-        bmx_initialize()
+        commonInit()
     }
     
-    private func bmx_initialize() {
+    /**
+        Common initializer
+     */
+    private func commonInit() {
         self.backgroundColor = UIColor.clearColor()
         self.layer.masksToBounds = true
         

    }
    }
    
    @IBInspectable public var avatarImage : UIImage? {
    didSet {
        applyFilter()
    }
    }
    
    @IBInspectable public var vibranceAmount : CGFloat = 0 {
    didSet {
        applyFilter()

//
//  BMXAvatarView.swift
//  BMXAvatarView
//  https://github.com/mbigatti/BMXAvatarView
//
//  Copyright (c) 2014 Massimiliano Bigatti. All rights reserved.
//

import Foundation

/**
    A rounded avatar UIImageView, with optional border and vibrance effect.
*/
@IBDesignable public class AvatarView : UIView {
    
    
    // MARK: - Private Properties
    
    /// backing image view used to display image
    private var imageView = UIImageView()
    
    /// activity indicator displayed while the image is updated
    private let activityIndicatorView = UIActivityIndicatorView(activityIndicatorStyle: .WhiteLarge)
    
    
    // MARK: - Public Properties
    
    /// avatar border width, default 2px
    @IBInspectable public var borderWidth : CGFloat = 2 {
    didSet {
        self.layer.borderWidth = borderWidth
    }
    }
    
    /// avatar border color, default clear
    @IBInspectable public var borderColor : UIColor = UIColor.clearColor() {
    didSet {
        self.layer.borderColor = borderColor.CGColor
