Fixed an issue where images would not work in the header/footer because HeaderFooter:paint wasn't waiting for the loadFinished signal after calling setHtml.
Merge branch 'master' of https://github.com/Morgul/phantomjs