Caching photos when they first time loads