Photography was not invented until the 1830s, so there could not be a photograph from the 17th century.
It has long been established that Samantha cannot undo another, older, witch's spell, but (here again!) at the end, she changes back the photo of Darren which Endora made old, as it was---young.