Swift version of ImageInverter Sample project from Apple for iOS8 and Xcode 6