Agreed - the name should be optional.  It should use the filename if no name is provided.  So in this way there is only one required argument (file path) and two optional (type, name).