Update to photos.length