treating null data as height 0 or width 0