based on the grayscalelayer-flag window leveling it is determined if the window_leveling feature is active