adding support for image and video tags