Fix gradients, cache shape graphics.