You can use regular expressions as a URL rule argument.
(use-modules (artanis artanis)) (init-server) (get "/.+\\.(png|gif|jpeg)" static-page-emitter) (run #:port 8080)
static-page-emitter is a GNU Artanis API that sends a static file (images, data files) to the client.