private String getNextLink(String pageHTML){
		//System.err.println("GetNextLink: " + sindex);
		//sindex = pageHTML.indexOf("<img alt=\"\" src=\"", sindex); 
		sindex = pageHTML.indexOf("<img alt src=", sindex); 
		sindex = pageHTML.indexOf("i.imgur", sindex); //find where next link starts
		int eindex = pageHTML.indexOf("\" />", sindex); //this is where next link ends
		if(sindex == -1 || eindex == -1) return "0";
		String nextLink = ((String) pageHTML.subSequence(sindex, eindex)); //this is the next link
		int dotIndex = nextLink.indexOf('.', 15);
		nextLink = nextLink.substring(0, dotIndex-1)+nextLink.substring(dotIndex, nextLink.length());
		return nextLink;
	}