Fix canvas sizing on rotation (fix #134)