preflight stuff for figures
fix bug in script for relativising svg links
automated checking for broken links in svg files