Fix computation of UV plane dimensions.