[fixes #534] fix disappearing of embedded images