Of course you can use a photo of them. It's not really needed though. You can just think about them, picture them in your head etc..
I use photos sometimes to help me focus on the person who I'm casting the spell on. It isn't necessary, but it can make it easier.