element = newElement;
images = createImages(nifty.getRenderEngine(), properties.getProperty("imageList"));
currentImageIndex = 0;
imageWidth = new SizeValue(properties.getProperty("imageWidth", "0px")).getValueAsInt(1.0f);
imageHeight = new SizeValue(properties.getProperty("imageHeight", "0px")).getValueAsInt(1.0f);
nextPrevHelper = new NextPrevHelper(element, screenParam.getFocusHandler());
backButtonElement = element.findElementByName("#back-button");
forwardButtonElement = element.findElementByName("#forward-button");
imageElement = element.findElementByName("#image");
imageElement2 = element.findElementByName("#image-2");
backElement = element.findElementByName("#back");