帮我 identifies who receives the help
帮我拍张照 asks the other person to take a photo for you. 我帮你拍张照 reverses the offer: you would be helping them. Both sentences can be grammatical, but they assign the camera task to opposite people. Keep the pronouns attached to the action you actually intend.