added support for linear and radial gradients