Pooling on RGB images