fix caching of captured photos