import Foundation
import Core

public class UrlDataResponseAdapter: Adapter<(data: NSData?, response: NSURLResponse?), (UIImage, NSURLResponse?)> {
    
    // MARK: - Singleton
    
    public static var instance: UrlDataResponseAdapter = UrlDataResponseAdapter()
    
    
    // MARK: - Public
    
    public override func adapt(input: (data: NSData?, response: NSURLResponse?)) -> (UIImage, NSURLResponse?)! {
        guard let data = input.data, let image = UIImage(data: data) else {
            return (UIImage(), input.response)
        }
        return (image, input.response)
    }
    
}
import Foundation
import Core

public class UrlDataResponseAdapter: Adapter<(data: NSData?, response: NSURLResponse?), (UIImage, NSURLResponse?)> {
    
    // MARK: - Singleton
    
    public static var instance: UrlDataResponseAdapter = UrlDataResponseAdapter()
    
    
    // MARK: - Public
    
    public override func adapt(input: (data: NSData?, response: NSURLResponse?)) -> (UIImage, NSURLResponse?)! {
        //return (input.data!, input.response)
        return (UIImage(), input.response)
    }
    
}
--- 
+++ 
@@ -11,8 +11,10 @@
     // MARK: - Public
     
     public override func adapt(input: (data: NSData?, response: NSURLResponse?)) -> (UIImage, NSURLResponse?)! {
-        //return (input.data!, input.response)
-        return (UIImage(), input.response)
+        guard let data = input.data, let image = UIImage(data: data) else {
+            return (UIImage(), input.response)
+        }
+        return (image, input.response)
     }
     
 }
Add Adapter to manage request response
