photo stuff mostly done