When we compared photographs of my sister and my great-grandmother, you could see the family resemblance.
Possible revision:
When we compared photographs of my sister and my great-grandmother, we could see the family resemblance.
For more help, see section 13.