Gradient implementation

Implements gradient and clear buttons in the options panel.