White space between images when using Masonry with imagesLoaded

I’m having a bit of trouble when using Masonry with imagesLoaded that spacing between images, it will be disappeard if I zoom window size. Hope anyone can give me solution for my issue.

http://jsfiddle.net/7hs958sr/embedded/result/

I think this has to do with the Javascript. CSS isn’t causing any spacing. Javascript is incorrectly calculating the coordinates of the items (which you shouldn’ t be using anyway).

I think use JS to create masonry is the good choice or you can give me alternative.

Perhaps this thread would be of use.

http://stackoverflow.com/questions/13779512/css-system-alternative-to-masonry