Changed UIImagePickerController to AVCapture.