Were you able to resolve this, or are you still working on this problem? It looks like you want to know how to move from a series of img variables to an array of images.
PImage[] imgs = new PImage[30];
You might be interested in some of the array reference pages, tutorials, and examples: