from mapjs - fix png export so it displays the collapsed nodes correctly