First, activate the Thumbnail Preview field add-on in your schema. It must be a single line text field.
Then, if the content of your field ends in jpg, jpeg, gif, png or webp, it will show a preview of the image under the field.