fix iOS 8 issue that camera view stuck in a loop when importing photo