Either this line doesn't work as expected, or update_image_member doesn't change the member_status.

The first time I run this sample works as expected.  It displays a list of pending images and I accept or reject each one.  Accepted images do show up in my account and I'm able to use them to build servers.

The second time I run the sample I expect to see "No pending images found", since I accepted/rejected each image the first time through. But I still see the same list.