FIX: Inline secure images with duplicated names (PR #13926)

Inlining secure images with the same name was not possible because they were indexed by filename. If an email contained two files with the same name, only the first image was used for both of them. The other file was still attached to the email.

GitHub