optimize.sh does not run rmdir images anymore