Copyright in a photograph belongs to the person who made it from the moment the shutter fires. It can be transferred, but only in a signed writing. Without that writing, what the seller paid for was a license, which is permission to use the images for a defined purpose, normally marketing that listing during that engagement. The loose market phrasing is "I bought the photos," and what nearly always changed hands is a license.
So the images don't travel with the building the way the boiler does. Copyright itself is federal so that part doesn't shift by state, though whether a specific contract transferred anything is a contract question, and if real money rides on it that's an hour with a lawyer.
The cheap route is the one @thatch described. Tell the photographer the property is now a rental and you want interiors for rental advertising. Relicensing an existing set commonly runs $25 to $150, well under a reshoot.
Two other reasons to think about a reshoot anyway. Many MLS rules require listing images come down when the listing ends, so the photos may be living somewhere they shouldn't already. And sale photos usually show staging furniture that isn't in the unit now. A tenant who tours an empty room they saw furnished has a real complaint, and some states have specific advertising rules about representing a unit accurately, so check yours before the ad goes up.