Replace the existing filename extension with the specified one.
The filename to modify
The file extension
NewFilename = FilenameExtensionSet(OldFilename, ".jpg")