Added check for hidden elements

When I was filtering with isotope, I noticed that the plugin loaded all images even if the elements were hidden (display: none). This option always for a hidden elements to be skipped when looping through the images.