void format() {
		page.createNewPage();
		String[] snapshot = SnapshotGallery.sharedInstance().getImageNames();
		if (snapshot == null || snapshot.length <= 0)
			return;
		StyledDocument doc = page.getStyledDocument();
		try {
			doc.insertString(doc.getLength(), "My snapshot images\n\n", titleStyle);
		}
		catch (BadLocationException e) {
			e.printStackTrace();
		}
		String parent = SnapshotGallery.sharedInstance().getAnnotatedImageFolder().getAbsolutePath()
				+ System.getProperty("file.separator");
		String s;
		Image image = null;
		for (int k = 0; k < snapshot.length; k++) {
			if (k >= MAX_IMAGE) {
				page.insertString("\n" + (k + 1) + ". Location: ");
				s = parent + snapshot[k];
				linkStyle.removeAttribute(HTML.Attribute.HREF);
				linkStyle.removeAttribute(HTML.Attribute.TARGET);
				linkStyle.addAttribute(HTML.Attribute.HREF, s);
				page.insertString(s, linkStyle);
				page.insertLineBreak();
				image = SnapshotGallery.sharedInstance().getThumbnail(k);
				if (image != null) {
					page.insertIcon(new ImageIcon(image, "tn_" + snapshot[k]));
					page.insertLineBreak();
				}
			}
			else {
				page.insertString((k + 1) + ".\n");
				page.insertIcon(SnapshotGallery.sharedInstance().loadAnnotatedImage(snapshot[k]));
				page.insertLineBreak();
			}
			Object o = SnapshotGallery.sharedInstance().getProperty("comment:" + snapshot[k]);
			if (o != null)
				page.insertString(o + "\n\n", answerStyle);
		}
		page.insertLineBreak();
		page.insertLineBreak();
		page.setTitle("My snapshot images");
		appendButtonsToReport(false);
	}