convert image to use external scripts