The painter themselves can take the photo. Photos can help if the subject or the scene is hard to be around long enough to paint. Say, an artist painting impressionistic city streets in the rain. It’s hard to stay in the rain and paint, but they can take a photo and paint at home, while recalling the feeling of being at the scene - the cold, the wetness, the sound of the splashing water, cars driving by, etc.