Resize images elements, divided into rows, inside a container until they fit. Like the flickr photo grid / stream.