Made the name of the file parameter optional.
In case no name is provided, the actual name of the file will be retrieved from the path of the file.