CPU image adding and subtracting functional