Replaced the 1200 pixel limit when resizing images with the values defined in the system settings (see #5268)