Swap interval needs to be set after canvas creation