public static URL getCharacterPortraitURL(long characterID, short size) throws ApiException {
		if(Arrays.binarySearch(characterPortraitSizes, size) < 0)
			throw new ApiException("Invallid image size: "+Short.toString(size)+". Allowed sizes are: "+Arrays.toString(characterPortraitSizes));
		try {
			return new URL(IMAGE_SERVICE_URL+"/Character/"+Long.toString(characterID)+"_"+Short.toString(size)+".jpg");
		} catch (MalformedURLException e) {
			throw new ApiException("Problem getting character portrait url for characterID: "+Long.toString(characterID)+" with size: "+Short.toString(size), e);
		}
	}