(d) The clerks of the respective courts shall collect the costs described by this article. The clerk shall keep separate records of the funds collected as costs under this article and shall deposit the funds in the county or municipal treasury, as appropriate.