Added per-frame output of the collision mask.