Replaced (NSString *)kCTForegroundColorAttributeName with NSForegroundColorAttributeName and similar to be compatible with iOS 8.