Replace given filename by a version that contains an incremental number in order to prevent overwriting existing files.
Useful links