Added photo caching.