Image in grid cell, both header and body

I need to be able to center an image in a grid cell and the header for that cell. In the grid I am showing an image in a cell and another image in the cell header. In both cases I would like to center that image both vertically and horizontally. Can anyone help me with this?
Thank yoy