delete unused files and change image quantity