It would be reasonable to assume that the inclination and opportunity to stage a photo like that would be most likely to arise at the aircraft's base, rather than somewhere down the line.
If Lyneham, that would make the York almost certainly a 511 Squadron aircraft.