set frame if only width and height supplied