Added possibility to save tiles files in a selected directory.