Because the changes must be done in that mod, you should ask this question there
but without letting you go empty handed, here is a hint on what should be done.
There must be a query that count how many images the member uploaded, in that query must be added condition to EXCLUDE your recycle bin's category ID. Like
NOT IN CAT(xx)