MATLAB: How to save multiple cropped images in a folder or in current directory

i have multiple cropped faces from an image and want to save these faces in a folder or in current directory in indexed formet . i use imwrite() function, but it saves only last image and name of image is i.jpg but i want to save all cropped faces like 1.jpg , 2.jpg, 3.jpg……please help me to do this …
here is my code
basepath = 'C:/Users/MANISHA/Desktop/vishu gui/detected faces/'; % folder in which i want to save images
for i = 1:c %c=number of faces, it is known to me
face=cell(1,c);
face{i}=imcrop(I,BB(i,:));
imwrite(face{i}, strcat(basepath, 'i.jpg'),'jpg');
end