Only gu.rpy is unlocking the gallery. You might need to delete the persistent file in appdata if you wanna reset the galery.
		
		
	 
Strange, i deactivatet cloud saves, deleted all files in my steam isntallation and appdata of this game and only copied all other files in after a fresh installation  and still got the galerys unlocked. Used the file and changed everything in false before starting my new run, deletet it and now i unlock the galery.
I start to get more and more confused, is the game missing some parts or ist it the Incestpatch+Walktrough mod i installed wrong?
Some more examples: 
Instead going into the office the MC went to the Detective because he recieving a call, never recieved a call or knew anything about it. 
The car in the garage, i could use it a day before the game forced one to use it and get cought by Sophie.
Than now the MC can enter Chloes room and thinks about the bathroom scene that i got after i found her on the sofa but now the MC thinks he saw her days ago in the bathroom and last night on the sofa? Mom was the night before on the sofa.