How can I center a picture?

How can I center a picture?


This is the picture I normally displayed

image
But when I click the expand button, it will always be displayed on the left, rather than in the center of the screen. How can I center the image when I expand it?