Implement the cloning of reference images
There is still a display bug. After switching to another snapshots, the reference images are not visible but are selectable.