Dynamically load file extension icons.

If an icon does not exist, attempt to generate a basic image
to represent the file icon
I would suggest to add at beginning of function

``` php
$t_icon_path = config_get( 'icon_path' ) . 'fileicons/';
```

And refer to that everywhere instead of repeatedly calling config_get()