bootstrap center in image code example
Example 1: bootstrap 4 center image
/* used mx-auto d-block */
Example 2: bootstrap Aligning images
Align images with the helper float classes or text alignment classes.
block-level images can be centered using the .mx-auto margin utility class.