I agree with this and I use my own photos, or occasionally Unsplash because the crediting is automatic on Medium. So there shouldn't be any room for mishaps. Ultimately, it's up to the judge to decide where there's a disagreement, but yes, it's better to credit properly or not use them.