Applies f to each frame in the group, and as new frames are added, applies f to those frames as well.