attempting to fix re-upload issue that segments but doesn't update images with segments
adding debugging log statements
still debugging
still debugging
think i've got it working
re-uploading an unsegmented book now also updates the images to belong to the correct segment