public void addImage(BufferedImage img,BufferedImage height,int x,int y){
  ChunkImage chunk=new ChunkImage();
  chunk.image=img;
  chunk.height_map=height;
  chunk.x=x;
  chunk.y=y;
synchronized (chunks) {
    chunks.add(chunk);
  }
  redrawChunk(chunk);
}

public void addImage ( BufferedImage img , BufferedImage height , int x , int y ) { ChunkImage chunk = new ChunkImage ( ) ; chunk . image = img ; chunk . height_map = height ; chunk . x = x ; chunk . y = y ; synchronized ( chunks ) { chunks . add ( chunk ) ; } redrawChunk ( chunk ) ; }
add a chunk image to the preview .
