Adapt size to video dimensions