Add multidomain support for images gallery.