public void onClick(ClickEvent event) {
final Duration d = new Duration();
final int numImages = size.getValue();
final TreeImages test = GWT.<TreeImages> create(TreeImages.class);
for (int i = 0; i < numImages; i++) {
Image current = test.treeClosed().createImage();
if (i == numImages - 1) {
current.addLoadHandler(new LoadHandler() {
public void onLoad(LoadEvent event) {
if (firstTime) {