Fix print of WMS layers
Fix legend print
Print only visible layer