Hack to swap canvas sizing due to the orientation