Automatic scaling of video elements