Fix image capture for iOS 7