This is figure 1
and I want to vertically center the image in that figure
Currently, I have the figure 1, 200 px by 200px and the position is set by calculating 50% - 100px which puts it always center but the images are not always 200 px high.
how do I tell the image to be center I tried margin auto but that did not center the image vertically as I had expected