Image preloader helper

Feel like this needs some tests, but I don't know how to test that a image is loaded... 
Do you need error handling to update badTags on 404s? Will it permanently wait otherwise?