Fix texture width math error