Checking the size of the element to detect more factors

Adding a check on the client size of the element 
where size = (offsetWidth * offsetHeight).
This will be able to detect those elements that are hidden or zero-sized in the layout.