Fix lightness calculation for global background picker as well