fixed basic handling of embeded media