Save uid with image