Changed so that updatePersistentBackground() runs (and therefore selfdark is allocated) only if useSubtractPersistentBackground=1