Fixed Gallery.

It doesn't try to access files by local path anymore.