Group stacking for photometry

This is awesome, thank you!