fixing masonry/image bug