Auto creation of photo directory to improve caching