Remember last custom tile layer (fixes #2094)