Attach image variable into mail Attachments

I was thinking that, maybe, if there is a way to transform the image variable to a fisical file identifying the path and format of the file you want to generate, it should be a way to pass the image variable without creating this fisical file.

Maybe is to much for 2022 generation :sweat_smile: