utils.SerializePage() doesnt render agent avatar image

I was trying to export a retool page as pdf that includes an avatar component within a container component. But the rendered pdf doesnt have the image of the avatar.

I am using
let dataUrl = utils.serializePage() return dataUrl; then get the base64 string to pdf component and download

I am using cloud retool and below is the screenshot of the exported pdf and the actual view on page

Actual

Exported