Is there a particular reason why you don't change the datasource and rerun the galleria?
Then you can easily change the images:
var data = [
{ image: "/path/to/myimage1.jpg" },
{ image: "/path/to/myimage2.jpg" },
];
var gallery = this;
gallery.load(data);
Data being any source (JSON, data-attribute, etc)