imagemagick: optional openjpeg support

Closes #28153