Added argument ignore_border to false for the pooling layer