Fix texture size bug.