Fixed canvas width algortihm.