improved tile caching by merging equal domains in one folder
use File.getParentFile() to get the tiles file path