Fix support for embedded images