         
         return .Unknown
     }
-}
-
-enum ImageFormat {
-    case Unknown, PNG, JPEG, GIF
 }
 
 // MARK: - Decode

private let jpgHeaderIF: [UInt8] = [0xFF, 0xE0]
private let gifHeader: [UInt8] = [0x47, 0x49, 0x46]

extension NSData {
    var kf_imageFormat: ImageFormat {
        var buffer = [UInt8](count: 8, repeatedValue: 0)

    }
}

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