Ender.js port of desandro's jQuery imagesLoaded plugin