Add support for gallery plugin