Adds some voodoo to make images flow correctly as well. We have to load
them first, which is a bit tricky to check. Perhaps there's a better
way, but this works on FF and Chrome.