Add custom galleries support