CNN Model for Image Classification on MNIST and Fashion-MNIST Dataset