join rects farer away if they are compatible

This leads to faster animations (fewer patches)
add --no-gui option (for benchmarking)
really prevent mean() of empty array
add --profile argument
test_alpha: verify bounds of alpha differences
test_alpha: reduce duplicated code