Update 'optimize-images' script