Fix for issue #79, Problem setting background color and gradient

Please see issue #79