added ability to repeat texture