Revise update_image.sh and add section in Makefile and Travis-CI.