dt_masks_legacy_params wip
At first image load, we need to load modules before reading masks (and potentially updating legacy masks)