Vertical align an unknown size image

Updated

Some ways to vertiacl align an image in a div, the image’s width and height are unknown

demo