Update galleryService.js