Center images and videos proportionally.