Change background for random generated patterns