fixes for many extent changes issue #30 and pink screen on wms fail issue #19