Store background setting in hash. Fixes #632