script to restart an image