Ruben here some basic code to read files from your folder into your sketch. Every 10 sec. a new image is read. Be aware to have a files.txt file with one line for every image in the folder.
PImage img;
String[] lines;
String filename = "files.txt";
int sec;
int posx = 240;
void setup() {
size(800,600);
smooth();
sec = second();
background(255);
}
void draw() {
if (frameCount % 600 == 0) {
posx = 240;
sec = second();
lines = loadStrings(filename);
int p = int(random(lines.length));
img = loadImage("img_" + str(p) + ".jpg");
}
if (img != null) {
image(img,-560 + (posx / 4),0,800,600);
image(img,posx,0,800,600);
posx ++;
}
}
The files.txt (if you add a file to the folder, add a line with a follow up number to this file).
0 1 2 3 4