Fixed an issue with update_index_images

This fixes an error in update_index_images that caused the concatenating of index_images to fail.