progress on photo cache stuff