How to mask an image with a custom shape

The image page in the tutorial (https://guide.openrndr.org/drawing/images.html) shows how to display part of an image in a Rectangle. Is it possible to display an image inside another shape, like a Circle? I tried using the drawer.image method and the shape compositing method, but neither of these approaches worked for me.