variable canvas width and padding