public static URL getTypeIconURL(int typeID, short size) throws ApiException {
		if(Arrays.binarySearch(typeIconSizes, size) < 0)
			throw new ApiException("Invallid image size: "+Short.toString(size)+". Allowed sizes are: "+Arrays.toString(characterPortraitSizes));
		try {
			return new URL(IMAGE_SERVICE_URL+"/InventoryType/"+Integer.toString(typeID)+"_"+Short.toString(size)+".png");
		} catch (MalformedURLException e) {
			throw new ApiException("Problem getting type icon url for typeID: "+Integer.toString(typeID)+" with size: "+Short.toString(size), e);
		}
	}