Merge pull request #7 from lat-lon/getLegendImageFromWms-183

Fixes legend image bug in latlon-versions