always set setgetPixels to false at the end of flush()