Fix canvas dimensions serialization

[#73893586]