public static Image getRandomWebcomic(Webcomic webcomic) {
		Image image = null;
		
		try {
			URI uri = new URI(webcomic.getScheme(), webcomic.getHost(),
					webcomic.getPath(), webcomic.getFragment());

			BufferedReader reader = new BufferedReader(new InputStreamReader(
					uri.toURL().openStream()));

			String page = "";
			String line = null;
			while((line = reader.readLine()) != null){
				page += line;
			}
			
			Document document = Jsoup.parse(page);
			Elements imageElement = document.select("[src~=" + webcomic.getRegex() + "]");
			
			String src = imageElement.attr("src");
			String title = imageElement.attr("title");
			image = new Image(src, title);
		} catch (URISyntaxException e) {
			e.printStackTrace();
		} catch (MalformedURLException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
		
		return image;
	}