Added TODOs about buf size not based on N_PAINTER.