Update graphics context