thumbnail.setProperty(AbstractNode.visibleToPublicUsers, originalImage.getProperty(AbstractNode.visibleToPublicUsers));
thumbnail.setProperty(AbstractNode.owner, originalImage.getProperty(AbstractNode.owner));
thumbnailRelationship.setProperty(Image.width, tnWidth);
thumbnailRelationship.setProperty(Image.height, tnHeight);
thumbnailRelationship.unlockReadOnlyPropertiesOnce();
thumbnailRelationship.setProperty(Image.checksum, newChecksum);
// System.out.println("Thumbnail ID: " + thumbnail.getUuid() + ", orig. image ID: " + originalImage.getUuid() + ", orig. image checksum: " + originalImage.getProperty(checksum));
// Soft-delete outdated thumbnails
for (Image tn : oldThumbnails) {