             else {
                 t.replaceRegion(region, mipmapLevel:0, withBytes:rawData, bytesPerRow:componentsPerRow)
             }
-        }        
+        }
         return texture
     }
 }

            else{
                memcpy(&rawData, imageBuffer.contents(), imageBuffer.length)
            }

            let cgprovider = CGDataProviderCreateWithData(nil, &rawData, imageByteCount, nil)
            
            if texture.pixelFormat == .RGBA16Unorm {

public extension IMPImage{
    
    #if os(OSX)
    
    public convenience init (provider: IMPImageProvider){
        var imageRef:CGImageRef?
        var width  = 0
