Save current background layer in context
Load the bg layer if properly set in context.