Added imagesLoaded plugin and fixed onload issues