fixing issues with masonry image loading/caching