frame.getContentPane().removeAll();
//frame.getContentPane().add(ci);
CellListMerger clm = new CellListMerger();
frame.getContentPane().add(new RescalableImage(clm.merge(newCells, new Dimension(img.getWidth(),img.getHeight()))));
content.repaint();
frame.pack();
System.out.println(file.getName());
}