Hi Aharon,
I happen to know how to realize this.
The key is that TILE_+variable has to be recognized as a image component.
Thus, you need to use Design Studio SDK: Component Manager to do the converison.
http://scn.sap.com/docs/DOC-61496
Sample code as below:
var iconPath=DS_1.getMembers("iconPath", 10);
iconPath.forEach(function(element, index) {
var index2=index+1 //convert 0-indexed to 1-indexed
var IMAGE_NAME="TILE_"+index2+"_IMAGE";
var IMAGE_component = COMPONENTMANAGER_1.getComponentByName(IMAGE_NAME);
COMPONENTMANAGER_1.returnAsImage(IMAGE_component).setImage(element);
}
Best regards,
Alfred