Convert to JSON for serialization
Map<String, dynamic> toJson() { return { 'width': width, 'height': height, }; }