fix xsl error when no legend; only scale legend images when (using 72 dpi) max legend width wider than legend width