                                 avatarFilePath = avatarFileURL.path,
                                 image = UIImage(contentsOfFile: avatarFilePath) {
 
+                                    let image = image.decodedImage()
+
                                     // 因此，要在主线程完成，防止对比 avatarCompletions 时数量不对
                                     dispatch_async(dispatch_get_main_queue()) {
                                         self.completeWithImage(image, avatarURLString: avatarURLString)

import RealmSwift

class AvatarCache {
    static let sharedInstance = AvatarCache()

    let cache = NSCache()

        } else {
            let image = UIImage(named: "default_avatar")! // NOTICE: we need default_avatar indeed

            let roundImage = image.roundImageOfRadius(radius).decodedImage()

            cache.setObject(roundImage, forKey: facelessRouncImageKey)
            
