[mian] Change algorithm to get similar image. Add javascript masonry. Wating to update.