refactor pooling for RGB screen, see #39