edit scripts
refine prepare_image.sh script