reduce CPU time to 31sec by checking if in same RLE level
even using line scan speedup, it is still exceeding time limit