Updated script. No image rewrites