iOS camera code in isolation from the app for testing