Trying to add CSS class to image blueprint

Hey folks,

I’m trying to add a field to my image blueprint that will inject a CSS class. I know I can add class: to an image, but I’d really like to have it so I can manage this within the blueprint.

I’ve added the following to my blueprint, and I see it in the panel, but when I complete it, nothing happens with the image. Do I need to do something else here? I assumed it would work because the field is already defined by Kirby, like alt.

sections:
      meta:
        type: fields
        fields:
          alt:
            label: Alternative Text
            type: text
          loading:
            width: 1/2
            label: Loading
            type: select
            options:
              lazy : lazy
              eager: eager
          class:
            width: 1/2
            label: CSS Class
            type: text
          link:
            label: Link
            type: url

Doh, fixed it! I have a plugin for defining lazy loading and I didn’t have the class field defined properly.