     
     private var recipt:RequestReceipt?
     static var downloader = ImageDownloader(
-                configuration: ImageDownloader.defaultURLSessionConfiguration(),
-                downloadPrioritization: .lifo,
-                maximumActiveDownloads: 4,
-                imageCache: AutoPurgingImageCache()
-            )
+        configuration: ImageDownloader.defaultURLSessionConfiguration(),
+        downloadPrioritization: .lifo,
+        maximumActiveDownloads: 4,
+        imageCache: AutoPurgingImageCache()
+    )
     
     public func cancelRequest(){
         guard let request = recipt else {

        
    }
    
    public func downloadImage(url:URL,placeHolder:UIImage) {
        self.image = placeHolder
        
        
        self.recipt = HKAlamofireImageView.downloader.download(URLRequest(url:url), completion: { (response) in
            
            
            
            if let image = response.result.value {
                self.image = image.af_imageAspectScaled(toFit: self.frame.size)
            }

          
            
            
            
            
        })

    
    
}

public enum HKAlamofireImageType{
    
    case rounded
    case normal
}
