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

public extension IMPImage{
    
    #if os(OSX)

    public convenience init (provider: IMPImageProvider){
        var imageRef:CGImageRef?
        var width  = 0

            let imageByteCount  = bytesPerRow * height
            
            let imageBuffer = provider.context.device.newBufferWithLength( imageByteCount, options: MTLResourceOptions.CPUCacheModeDefaultCache)
            
            //
            // Currently, OSX does not have work version of texture.getBytes version.
            // Use blit encoder to copy data from device memory
            //
            provider.context.execute({ (commandBuffer) -> Void in
                
                let blitEncoder = commandBuffer.blitCommandEncoder()
                
                blitEncoder.copyFromTexture(texture,
