Cleaned it up a bit.  Now just using media file system provider.

It needs a bit of convesion rules though, need getfullpath(getrelativepath(path)) to be compatible with package & physical.