Just create observable array, like this:
var A = (function() {
function A()
{
this.images = ko.observableArray(['a.jpg', 'b.jpg', 'c.jpg']);
}
return A;
})();
ko.applyBindings(new A());
And the HTML:
<figure>
<!-- ko foreach: images -->
<img data-bind="attr: {src: $data}">
<!-- /ko -->
<figcaption>Image title</figcaption>
</figure>
Working demo here.