unify height and width as integer