Do this in the base class.

Fixes Lightbox galleries ignoring image actions.