Added support for ksnapshot (kbackgroundsnapshot is used).