Slight tweak to ReaderWriterWMS to try reading the image first instead of the string.

Hopefully most of the time the request will be a success so it will
avoid a double hit on the server.