fix imagesLoaded for data uris

Here is a fiddle of imagesLoaded w/ data uris showing it doesn't work, and an updated fiddle w/ a fix.

http://jsfiddle.net/85xYD/
http://jsfiddle.net/85xYD/1/

Thanks for the great library by the way :+1: