Creating confluence page using templates through REST api

I am trying to use a Confluence template, retrieved through the REST API “BaseUrl/wiki/rest/api/template/{contentTemplateId}”, to create a Confluence page. For textual content, it seems to be working fine. However, when the template includes any images - these images are returned without an id or URL and thus when I create a page using that template content - the images are missing. Is this a limitation in the Templates API from Confluence or am I doing something wrong?

Also below is the screen shot of template after opening it in view mode.