Clean up some namespace handling

`NS_FILE ==  NS_IMAGE == 6` yes
but
`NS_VIDEO == 400` right?

so we would have to leave 
```
foreach ( array( NS_FILE, NS_VIDEO ) as $ns ) {
```