Fixed bug causing texture dimensions to be incorrect causing incorrect display in slice view in certain situations