What is the code for centering an uploaded image?

If the images are not wide enough they will stack horizontally like so:

If you’re fine with losing this, then you can automatically center all images in posts using CSS.

.lightbox-wrapper {
    display: block;
    text-align: center;
}

p>img:not(.emoji){
    display: block;
    margin: 0 auto; 
}

The results would look like this:

14 Likes