add context to gradient