Fix bug in ImageUtils for jpeg output encoding.
Add allowedLanguages parameter to WebUtils.SetUserLocale() to minimize resource thrashing when accessing resources that are not supported by the application.