sceneImage = new BufferedImage( width, height, BufferedImage.TYPE_INT_RGB);
pixels = ((DataBufferInt)sceneImage.getRaster().getDataBuffer()).getData();
gc = sceneImage.createGraphics();
bwImage = new ImagePlus(null, bwProcessor = new ByteProcessor(width,height));
//bwImage.trimProcessor();
firstTime = false;
}