docs: private void printImage(PrintStream out, ItemDocument itemDocument) {
  		String imageFile = null;
  
  		if (itemDocument != null) {
  			for (StatementGroup sg : itemDocument.getStatementGroups()) {
  				boolean isImage = "P18".equals(sg.getProperty().getId());
  				if (!isImage) {
  					continue;
  				}
  				for (Statement s : sg) {
  					if (s.getMainSnak() instanceof ValueSnak) {
  						Value value = s.getMainSnak().getValue();
  						if (value instanceof StringValue) {
  							imageFile = ((StringValue) value).getString();
  							break;
  						}
  					}
  				}
  				if (imageFile != null) {
  					break;
  				}
  			}
  		}
  
  		if (imageFile == null) {
  			out.print(",\"http://commons.wikimedia.org/w/thumb.php?f=MA_Route_blank.svg&w=50\"");
  		} else {
  			try {
  				String imageFileEncoded;
  				imageFileEncoded = URLEncoder.encode(
  						imageFile.replace(" ", "_"), "utf-8");
  				// Keep special title symbols unescaped:
  				imageFileEncoded = imageFileEncoded.replace("%3A", ":")
  						.replace("%2F", "/");
  				out.print(","
  						+ csvStringEscape("http://commons.wikimedia.org/w/thumb.php?f="
  								+ imageFileEncoded) + "&w=50");
  			} catch (UnsupportedEncodingException e) {
  				throw new RuntimeException(
  						"Your JRE does not support UTF-8 encoding. Srsly?!", e);
  			}
  		}
  	}