A method and apparatus to remove a block effect and a ring effect appearing in a compression-coded image is disclosed. The compensation circuit is controlled as a function of the determined conditions. The second unit cell is connected in series to the first unit cell, the negative electrode terminal is disposed so as to face the first direction, and the second unit is disposed so as to be adjacent to the first unit cell.