Added handling for embedded images.