 final class MoaImageDownloader {
   var task: NSURLSessionDataTask?
   var cancelled = false
-
+  
   deinit {
     cancel()
   }
-
+  
   func startDownload(url: String, onSuccess: (UIImage)->(),
     onError: (NSError, NSHTTPURLResponse?)->()) {
-
+    
     cancelled = false
-
+  
     task = MoaHttpImage.createDataTask(url,
       onSuccess: onSuccess,
       onError: { [weak self] error, response in
         if let currentSelf = self
           where !currentSelf.cancelled { // Do not report error if task was manually cancelled
-
+    
           onError(error, response)
         }
       }
     )
-
+      
     task?.resume()
   }
-
+  
   func cancel() {
     task?.cancel()
     cancelled = true

      onError(error, response)
      return
    }

    if let image = UIImage(data: data) {
      onSuccess(image)
    } else {

        return moa
      }
    }
    
    set {
      objc_setAssociatedObject(self, &xoAssociationKey, newValue, objc_AssociationPolicy(OBJC_ASSOCIATION_RETAIN))
    }
