1) change the perl version to 5.19.5
add a '-r' option to the 'rm' command of deleting old image files