A switchable atomic mirror