Fixed crash occurring when photos are taken from within the app.