'Gets a Base/Customer image in the Dimension Data Cloud given the id
Note: This first checks the base image
If it is not a base image we check if it is a customer image
If it is not in either of these a DimensionDataAPIException
is thrown
:param id: The id of the image
:type  id: ``str``
:rtype: :class:`NodeImage`'

def ex_get_image_by_id(self, id):

    try:
        return self.ex_get_base_image_by_id(id)
    except DimensionDataAPIException as e:
        if (e.code != 'RESOURCE_NOT_FOUND'):
            raise e
    return self.ex_get_customer_image_by_id(id)
