Fix empty texture creation