mapfishapp: fixed JPEG layers in WMC loaded as PNG - closes #370