[BUG #7273] don't modify styles if colors are undefined
[BUG #7273] apply background image styles