Update ImageGalleryManager.php