add pixel counter