Corrupted jpeg check only for iOS 8+