destImage = getToolkit().getImage(imageName2);
MediaTracker tracker = new MediaTracker(this);
tracker.addImage(sourceImage, 0);
tracker.addImage(destImage, 0);
try {
tracker.waitForID(0);
} catch (InterruptedException ex) {}
warpGrid1 = new WarpGrid(rows, cols, sourceImage.getWidth(this), sourceImage.getHeight(this));
warpGrid2 = new WarpGrid(rows, cols, destImage.getWidth(this), destImage.getHeight(this));
warpGrid3 = new WarpGrid(rows, cols, sourceImage.getWidth(this), sourceImage.getHeight(this));