More flexible texture resizing