Add support for linear gradients

r? @metajack