make a pattern with the painting background