added experimental photo gallery with background process that loads photos in advance for smooth viewing
TODO: put a maximum size to the cache to avoid memory leak
improved photo gallery experiment