video width and height handled the same way image height and width is handled