updated newImage script