add code formatting + refactor of Photo handling + use of test suite instead of a single unit test