redrec - Decrease color depth of a bitmap before send it to recorded session.
Fixed unit test.