Bug fixing at pixel clearing related methods.