 //  THE SOFTWARE.
 
 import CoreGraphics
+import AVFoundation
 
 #if os(OSX)
     import AppKit.NSImage

            
            break
        case .ScaleAspectFit:
            
            // not implemented yet
            
            rect = CGRect(origin: CGPointZero, size: size)
            break
        default:
            break

    
    public func resizedImage(size : CGSize, contentMode : UIViewContentMode = .ScaleAspectFill) -> UIImage {
        UIGraphicsBeginImageContextWithOptions(size, true, 0)
        
        var rect = CGRect(origin: CGPointZero, size: size)
        
