Added caching to the photo display.