modularized the whole thing
rename to patchimage.sh
remove README