Support relative links for images (fixes #19). The preview is updated after 300ms of idle time, reducing flicker and thrasing, and partially fixes #7.