Duplicates of same image on embedding

When same image is attached to e-mail on multiple places, each occurence of that image will attach new image to email. Expected behaviour is, that same image will always use same ID on each place and only first occurence will attach and create custom unique ID for email.


{% set HeaderLogo = 'emails/logo.png'|media %}
{{ message.embed(HeaderLogo) }}
.... body content ...
{{ message.embed(HeaderLogo) }}

This code will attach 2 same images instead of “reusing” same identificator.