updated the XImageGallery to notify depends