Retain remote WMS

First attempt at #148 - please test