}
public void initDisplay(int width, int height){
GraphicsDevice gd = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();
GraphicsConfiguration gc = gd.getDefaultConfiguration();
transitionImage = gc.createCompatibleImage(width, height, Transparency.TRANSLUCENT);
templateImage = gc.createCompatibleImage(width, height, Transparency.TRANSLUCENT);
alertImage = gc.createCompatibleImage(width, height, Transparency.TRANSLUCENT);
backgroundImage = gc.createCompatibleImage(width, height, Transparency.TRANSLUCENT);
outputImage0 = gc.createCompatibleImage(width, height, Transparency.TRANSLUCENT);
outputImage1 = gc.createCompatibleImage(width, height, Transparency.TRANSLUCENT);