added texture resizing