move flash image creation into post-image.sh