more work on image cleaning