Tried float: left, but in this case it only works in IE and Opera.
As is

As we would like — works in IE and Opera with float: left

When placing the image if it doesn't fit, it wraps to the next line in the place where the image is not fit to form a void, the block remains stretched over the entire width.