attempt to get printing WMS layers working correctly