A better fix for https://github.com/wsexport/tool/issues/24 . But this remains kludgy as we need to rely on the img src= format to get the data we need.