Justifies Image Grids are great to show galleries. They were adopted by flickr and Google+ for their publich albums and photo stream.
I was inspired by this article by Florian Maul and by CollagePlus, a wonderful jQuery implementation of the algotrythm by Ed Lea. Current Implementations of this layout involve Javascript and can be quite Taxing on the client site.
This is a CSS-Only version of this layout, based entirely on CSS3-Flexbox.