This is only an issue in Safari and looks like a Safari bug to me. Here is a fiddle with a simplified version of the issue.
When an image is in a nested flexbox elem
height: 100% !important
or like img { height: 100% !important; }
img { height: 100% !important; }