Either you should purchase the image from a stock photo site, which expensive and not recommended if you are a new freelancer who is on a budget or you should download the photo with Creative Commons license. Almost all the stock photos downloaded from free stock photo sites come with Creative Commons license. So you are safe from any copyright issues.