Group module photo upload and code refactorization