Eight disks are arranged in the shape of a square, three along each side, as shown. Four of the disks are to be painted blue, three are to be painted red, and one is to be painted green. Two paintings that can be obtained from one another by a rotation or a reflection of the entire figure are considered the same. How many different paintings are possible?