Handling of WMS legend graphic