Added the possibility of adding repeated textures.