iOS camera preview and capture with AVFoundation framework.