If I am planning on shooting photos and diving with a group I need to do two things:
First, discuss this plan, ahead of time with the other divers, to make sure they understand my intentions and needs, and agree to my plan.
Two, make sure that I also make the effort to be aware of the group at all times.
They did not just leave you, you allowed them to move away, unseen by you.
Better yet, pick a buddy team that has the same focus as you, photography, and develop team awareness, as well as self rescue skills, because as has been mentioned, photography diving can be essentially solo diving.
When diving with a group I keep my focus on the group dive plan, and if I am carrying the camera it takes second place threw out that type of dive.
On a recent Rhode Island dive I was with two new buddies and in a low viz. During our SI, when I showed them the photos I had taken on that dive, they were surprised that I'd taken any, as I never dropped back, or got separated, even in 5 to 7' viz. It took a lot of focus on my part to maintain contact, and I had to consciously pass up many shots that could have been "improved" by more time. It was not a photo dive, but a dive where the camera was simply available when quick shots were possible.
When doing dives for photo, I focus completely on that, and not on being with a team of buddies. Best done solo, or at most with only one other diver who is either willing to stay and help spot, or is another photo diver, which essentially makes you and them same ocean "buddies".