code cleanup (mostly whitespace)
issue 6: default to black if we cant find the background color in the palette
test for issue 6