         Adds a handler to be called once the request has finished.
 
         - parameter completionHandler: A closure to be executed once the request has finished. The closure takes 4
-            arguments: the URL request, the URL response, if one was received, the image, if one could be created from
-            the URL response and data, and any error produced while creating the image.
+                                       arguments: the URL request, the URL response, if one was received, the image, if 
+                                       one could be created from the URL response and data, and any error produced while 
+                                       creating the image.
 
         - returns: The request.
     */

        Creates a response serializer that returns an image initialized from the response data using the specified
        image options.

        - parameter imageScale: The scale factor used when interpreting the image data to construct `responseImage`.
            Specifying a scale factor of 1.0 results in an image whose size matches the pixel-based dimensions of the
            image. Applying a different scale factor changes the size of the image as reported by the size property.
            `UIScreen.mainScreen().scale` by default.
        - parameter automaticallyInflateResponseImage: Whether to automatically inflate response image data for
            compressed formats (such as PNG or JPEG). Enabling this can significantly improve drawing performance as it
            allows a bitmap representation to be constructed in the background rather than on the main thread. `true`
            by default.

        - returns: An image response serializer.
    */
    public class func imageResponseSerializer(
        imageScale imageScale: CGFloat = Request.imageScale,
        automaticallyInflateResponseImage: Bool = true)
        -> GenericResponseSerializer<UIImage>
    {
        return GenericResponseSerializer { request, response, data in

    /**
        Adds a handler to be called once the request has finished.

        - parameter imageScale:           The scale factor used when interpreting the image data to construct 
                                          `responseImage`. Specifying a scale factor of 1.0 results in an image whose 
                                          size matches the pixel-based dimensions of the image. Applying a different 
                                          scale factor changes the size of the image as reported by the size property.
                                          This is set to the value of scale of the main screen by default, which 
                                          automatically scales images for retina displays, for instance. 
                                          `Screen.scale` by default.
        - parameter inflateResponseImage: Whether to automatically inflate response image data for compressed formats 
                                          (such as PNG or JPEG). Enabling this can significantly improve drawing 
                                          performance as it allows a bitmap representation to be constructed in the 
                                          background rather than on the main thread. `true` by default.
        - parameter completionHandler:    A closure to be executed once the request has finished. The closure takes 4
                                          arguments: the URL request, the URL response, if one was received, the image, 
                                          if one could be created from the URL response and data, and any error produced 
                                          while creating the image.

        - returns: The request.
    */
    public func responseImage(
        imageScale: CGFloat = Request.imageScale,
        inflateResponseImage: Bool = true,
        completionHandler: CompletionHandler)
        -> Self
    {
        return response(
            responseSerializer: Request.imageResponseSerializer(
                imageScale: imageScale,
                inflateResponseImage: inflateResponseImage
            ),
            completionHandler: completionHandler
        )
