At the end of The Shining, the character of Jack Torrance appears in a 1921 photograph. Actor Jack Nicholson was composited into an existing vintage photograph by artist Joan Honour Smith, his head, collar and bow tie replacing that of an anonymous man.
Of the two images seen here, the blurrier one is from the very end of the long tracking shot which glides down the hall toward the framed photo. The second, sharper image is from the subsequent close-up to which Kubrick dissolves.
Nicholson’s head was composited into photographic prints enlarged to different sizes. This presumably afforded Kubrick the ability to film an extreme close-up of the photo from a much larger print than the framed image, thus ensuring maximum sharpness with minimal film grain
This animation reveals the fact that two different photographs were used: Nicholson’s head rotates counter-clockwise from one image to the other, and his screen-right shoulder has had much more retouching done in one photo than in the other, partially obscuring the woman’s hand holding the cigarette.
(click image to enlarge)