Added background color math (still need some work)