 private let jpgHeaderIF: [UInt8] = [0xFF, 0xE0]
 private let gifHeader: [UInt8] = [0x47, 0x49, 0x46]
 
+// MARK: - Image format
+enum ImageFormat {
+    case Unknown, PNG, JPEG, GIF
+}
+
 extension NSData {
     var kf_imageFormat: ImageFormat {
         var buffer = [UInt8](count: 8, repeatedValue: 0)

        
        return .Unknown
    }
}

enum ImageFormat {
    case Unknown, PNG, JPEG, GIF
}

// MARK: - Decode

    }
}

// MARK: - Create images from data
extension UIImage {
    static func kf_imageWithData(data: NSData, scale: CGFloat) -> UIImage? {
        var image: UIImage?
