Fix EZP-19707: Unable to align an embed image
(cherry picked from commit a200b8ba9024b236d7d6eb22f2721e7c0f074817)