fix rendering of img,vimeo and youtube tags