Add update method for GalleryController