upload photos handler and testing