Fix issue906

Fixing Issue https://github.com/DGtal-team/DGtal/issues/906

Domain given at constructor of BoolImage2D are deleted after the call, but stored as pointer inside BoolImage2D. Then, the "pointed Domain" is wrong and can be deleted, resulting an assertion when scanning the domain.

I don't know why Travis doesn't get this behavior....

:octocat: