Fixed duplicating photos in Photo class (untested).