public ImageOptimize(String domain, int size) {
		if (domain == null || domain.isEmpty())
			return;
		if (size <= 0)
			return;

		if (!domain.startsWith("http://"))
			domain = "http://" + domain;

		try {
			document = Jsoup.connect(domain).get();
			this.size = size;
		} catch (IOException e) {
			e.printStackTrace();
		}
	}