Converts this image to a map representation.
Map<String, dynamic> toMap() { return { 'url': url.toString(), 'height': height, 'width': width, }; }