var str=n="a (1).png";
for(var i=1;i<25;i++) {
b = i.toString();
b = i.toString(); //Fun fact: neither b or n were declared anywhere
var n=str.replace("1",b);
images.push(n);
}