Please add a permission for this.
It could work the same as this: http://xenforo.com/community/resources/bd-anonymous-posting.970/
There would be a usergroup permission: can post anonymous
If the user has this permission they would see a 'post anonymous' tickbox on the add media page.
When this is ticked, then the entry will list 'anonymous' instead of the username.