Use img tag instead of object so phantomjs can properly print to pdf