You can edit the following DeepProbLog program. The model that will evaluate the program and queries has access to a network for handwritten digit classification called mnist_net.
Images of handwritten digits are available using the syntax test(<index>) to select the image with index <index>. See the illustration down below for some images and their corresponding indeces.