fixes embedded images