There are a few ways to do this, but the simplest is to use Path.GetFileNameWithoutExtension and Path.GetExtension:
string filename = "image1.jpg";
int fileCount = 1;
string renameTo = string.Format("{0}_{1}{2}", Path.GetFileNameWithoutExtension(filename),
fileCount,
Path.GetExtension(filename));
Do note that if you images include a path, you will need to add that to the file as well.