updated the XImageGallery to support refresh on selected item