add styles for images and videos