Add some regression tests for how the URIs associated with an image is handled during, save, import etc.