Attach image with Proform and code snippets

Hello everybody,
When creating a post on WordPres and attaching an image in the Featured image field the image is linked to the post, when you delete the post the media has Unattached status which is not linked to any post.
When I create a post with Proform, adding an image in FeatureImage, the image is not linked to the post like it is in the Wordpress panel.
Is there any way to make this connection? Any code that I can add to the code snippets?

Grateful for the attention