adding photo upload, viewing, edit, update functionality