Added support for background colors and gradients.