Removing option for temporary layer

Instead, adding setter and getter for a private temp_ property,
as suggested by @elemoine.