Fixed dismissal bug by using -presentingViewController instead of -parentViewController on UIImagePickerController.