Added image cache to photos upload