added image embedding support