Make setting of image source more robust.
Update autocomplete cache on record change.