Autoscale images or videos to fill a container div