use File.getParentFile() to get the tiles file path