It’s up to you. If you consider it necessary and this does not contradict either the general style of the resume or the culture of the company where you are applying, add a photo.