Dynamic sizing of the video canvas accordingly to the outermost frame size