Trying to figure out the correct canvas width