Detect main background color

It closes #8