note the code to hax for when you need to generate pdf with background images. slighltly improve the auto-linkify of things that look like urls