use a script to register the image