public ImageParameters [] loadImage(ImageLoadingParameters ilp, Gui gui, int windowWidth, Graphics g) throws Exception
	{
		if (ilp == null)
			return null;

		int loadNImages = ilp.il.length;
		ImageParameters [] result = new ImageParameters[ilp.indexes.length];

		for(int nr=0; nr<loadNImages; nr++)
		{
			String loadImage = ilp.imageUrls.get(ilp.indexes[nr]);
			Image image = null;
			drawLoadStatus(gui, windowWidth, g, "Load image " + loadImage);

			image = ilp.il[nr].getImage();

			if (image != null) {
				int imgWidth = image.getWidth(null);
				int imgHeight = image.getHeight(null);

				result[nr] = new ImageParameters(image, loadImage, imgWidth, imgHeight);
			}
		}

		return result;
	}