Dynamic jpeg loader

So one minute I can have 10 jpegs and the next day 20 and it will work the same without editing the file?

I understand the array, I do not want one! that way it can be truely dynamic and not a static array!