Finished register but image preview not working