The photographs show the Cuban leader laying in bed , shaking hands with Mr. Chavez and receiving a portrait of Mr. Castro as a gift .