I created an eample filter that will do this with a URL field. It can be modified to work with other types of fields or do other things depending on your needs. https://github.com/Hube2/acf-filters-and-functions/blob/master/render-image-in-editor.php