Minor updates of the script 'imagesd.sh'.