fixed a lot of bugs with camera and UI on iOS 6