Testing images in a table

Here you have some images with captions without tables. The idea is to center the table and the cell contents with help of css. Flex layout used.

Teacher
Image 1
Teacher
Image 1
Teacher
Image 1
Teacher
Image 1