Set default width and height if no set.