add css class to centered image