Fix imagesLoaded when using ng-src

imagesLoaded was not working on my application. With these modifications it's working.