delete template file and change image names