Fixed Deprecated methods for ios 6.1+

Some methods of the AVCaptureConnection class were deprecated for ios
6.1+. Now all the calls to those methods have been substituted with
non-deprecated ones.