more work on rendering for bg gradient.