Fix GetLegendGraphic jpeg/jpg FORMAT bug

Even GetCapabilities of a QGIS mapserver WMS tells jpeg is a valid format for GetLegendGraphic request, trying this format results in an exception telling that GetMap does not support "jpeg" format but works with the not listed "jpg". This pull request adds jpg, jpeg, image/jpg and image/jpeg as valid formats to GetMap and GetLegendGraphic requests