`RLE_SIZE`` is (width, height) dimension of the input and RLE_COUNTS is its RLE representation; r