Model ID in Chat not Displaying Correctly

Model ID and image in chat are changing with model selector instead of being hooked to individual message ID in database, causing incorrect models to be displayed for historical messages.