Capture the initial frame of User to display in thumbnail if he goes inactive

We are using a config where whenever a user mutes himself, he goes inactive for everyone else in the room so as to save bandwidth. I need to fix it so that instead of a black screen when user goes inactive, we can show his last frame before going inactive. Any help is appreciated.