Don't update canvas width or height if the have't changed (fixes #52)