fixed some bugs in the updated updateclusterimages