fixed photo upload bug, wrote tests to cover it
cleared cached temp photos