Gallery: Change path lookup for thumbnail.