U4-4729: Make max image dimension in RTE configurable

This makes the scaling of images in the RTE above a certain size optional and the size configrable in the PrevalueEditor. Entering 0 for the size disables scaling. The default value of 500px is kept for backwards compatibility.