Added HTML 5 gallery support.