Fix the photo capture in inout app.