Added condition for 'display' property

Check the CSS 'display' property on either the parent element or the image itself. If 'display' does not equal 'none', download the image.