title: Resizing flex div image instead of cropping
body: <p>I have a flex with 3 images and I would want them resize if a window is too small right now when window gets smaller first they reorder so they stack vertically and when window gets even smaller the picture gets squeezed instead of resized I would want to keep the image with proper aspect ratio.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.images {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  }
  .images div {
    display: flex;
    margin: 1rem;
  }
  .images img {
    height: 16rem;
    max-width: 100%;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="images"&gt;
    &lt;div&gt;
      &lt;img src="http://placehold.it/150x200"&gt;
    &lt;/div&gt;
    &lt;div&gt;
      &lt;img src="http://placehold.it/150x150"&gt;
    &lt;/div&gt;
    &lt;div&gt;
      &lt;img src="http://placehold.it/150x100"&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>