public static Image loadImage(String name, int type)
	{
		switch(type)
		{
			case BMP:
				return loadBMP(name);
			case PNG:
				return loadPNG(name);
			case JPG: 
				return loadJPG(name);
			case GIF:
				return loadGIF(name);
			default:
				throw new UnsupportedOperationException("Not a supported image type. [" + type + "]");
		}
	}