Masonry dont load correctly

Sometimes masonry dont load in the right way. I think is because sometimes the masonry load first and images later. Is any solution to this you can suggest me?

This is the way it loads

This i the way need to load.

After reload the page complete displays good.