Fixes the Gradient renderInContext: drawing issue