This is the bare minimal code I think for tumblr masonry gallery with 250px images (only) on a 1040px container, Its just basic HTML5, CSS, and jQuery. DO whatever you want with it.