Bug fix: Freeze when get image from camera/image library, do not use deprecated methods.

Do not use following deprecated methods:
- imagePickerController:didFinishPickingImage
- dismissModalViewControllerAnimated
replace deprecated api : dismissModalViewControllerAnimated