Re #7766. Fixed the pixel incrementing bug.