The president poses for photographs and takes off his mask in a defiant show after a stay in hospital