Camera capture, preview and save using AVFoundation