Map<String, dynamic> toMap() => { 'height': height, 'width': width, 'channels': channels, 'head': head.toMap(), };