Small problem with the new image reference solution: classes specified in Djot are no longer passed through as the Djot rendering is bypassed. Most images on the site are wrapped in a ‘gallery’ div, so I can still class that, but it does create a small annoyance for bare images.