added basic gallery support