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

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

            
            break
        case .ScaleAspectFit:
            rect = AVMakeRectWithAspectRatioInsideRect(self.size, rect)
            break
        default:
            break
