Please just use the PRESET_MAX_IMAGE_PIXEL_SIZE in the code instead of assigning it to a property of a different name?  It seems confusing to me to use two different names here.

If you change the file name from preset.js, to config.js, then change the PRESET_ prefix here to CONFIG_