#198 #146 refactoring photoController