Serialize canvas