More progress with re-write of OptimalSizeForTexture()