public void addImageUrl(String url) throws Exception
	{
		ImageUrlType type = ImageUrlType.FILE;

		int space = url.indexOf(" ");
		if (space != -1) {
			String typeStr = url.substring(0, space);
			url = url.substring(space).trim();

			if (typeStr.equalsIgnoreCase("MJPEG"))
				type = ImageUrlType.HTTP_MJPEG;
			else if (typeStr.equalsIgnoreCase("HTTP") || typeStr.equalsIgnoreCase("HTTPS"))
				type = ImageUrlType.HTTP;
			else if (typeStr.equalsIgnoreCase("FILE"))
				type = ImageUrlType.FILE;
			else
				throw new Exception("Unknown image-type: " + typeStr);
		}
		else
		{
			if (url.length() >= 8 && (url.substring(0, 7).equalsIgnoreCase("http://") || url.substring(0, 8).equalsIgnoreCase("https://")))
				type = ImageUrlType.HTTP;
		}
		lock();
		imageFiles.add(url);
		iut.add(type);
		unlock();
	}