A problem with the out-of-box jQuery-ui autocomplete component is that:

Only text is shown in the dropdown

That same text populates the field upon list selection.

Thankfully, this does not have to be the case. Images and other markup can easily be rendered in the suggestion list. Consequently, the text that populates the autocomplete field upon selection is fully customizable.