             
         case .down, .rightMirrored:
             
-            cache = ImageCache()
-            
             pixels.withUnsafeMutableBufferPointer {
                 guard let buffer = $0.baseAddress else { return }
                 Swap($0.count >> 1, buffer, 1, buffer + $0.count - 1, -1)

        switch orientation {
        case .up, .leftMirrored: break
        case .right, .upMirrored:
            
            cache = ImageCache()
            
            pixels.withUnsafeMutableBufferPointer {
                

            
        case .left, .downMirrored:
            
            pixels.withUnsafeMutableBufferPointer {
                
                guard let buffer = $0.baseAddress else { return }
