make pattern seamless to use as 3d texture file