add gradient functionality fix blending of overlay drawing routines