Image buffer having logic-enhanced pixel memory cells and method for setting values therein