Remove code that replaces imagefilter() because it doesn't handle transparency.

Better have it fail than letting it produce crap.
Make updating the dir cache more robust

Fail when directory cannot be opened (instead of looping forever, wtf)
Do not empty cache table until updated list is available.