Fix width/height handling for offscreen videos