center textures and patterns