fix IpImageGallery unused images removal