Сlassification using convolutional layers
You need Dense() layers after convolution / pooling layers. Conv and max-pool are meant to process pixel data in a format that can be later received from dense layers.
It's the Dense() output layer that, using a softmax activation, can technically perform the classification (by returning a one-hot encoded vector).