updating gradients and background images