Refactoring : clean the terminal when compute images.

Use logging instead of print.