Added support for linear and radial gradients.