[fix #70] Convert calculated width to integer to prevent display rounding errors

In reference to issue #70