Image preloader helper

Feel like this needs some tests, but I don't know how to test that a image is loaded... 
Yes, if the element has no src or background image, we will waiting forever.. that's the reason i've added this "badTag", to avoid this elements and get only the ones with an image.