Attached is patch that sets x-wap-profile header when retrieving MMS. I am still not able to downscale incoming image but it could be that my provider is caching and ignoring UAProf (?)