Merged (manual) from Shiandow's ChromaScaler work branch with changes to ConfigDialog.