mapfishapp: fixed JPEG layers in WMC loaded as PNG - closes #370
merging 13.06 into 13.09