block detection - color independent