added totalPhotosCached