[#5] implement replacement of memberships list for an image and a client.