<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def add_firmware_image(self, name, datafile, **kwargs):
 """Add a new firmware reference. :param str name: Firmware file short name (Required) :param str datafile: The file object or *path* to the firmware image file (Required) :param str description: Firmware file description :return: the newly created firmware file object :rtype: FirmwareImage """

        kwargs.update({'name': name})
        firmware_image = FirmwareImage._create_request_map(kwargs)
        firmware_image.update({'datafile': datafile})
        api = self._get_api(update_service.DefaultApi)
        return FirmwareImage(
            api.firmware_image_create(**firmware_image)
        )