painted area calculation (iterative, recursive and clones) | ScratchStats